SetMethodBindingConverterRegistry
struct · ferroui-reactiveui · v0.5.0
struct SetMethodBindingConverterRegistry
The converters that set values on binding targets in ways of their own
(SetMethodBindingConverterRegistry). The one with the highest positive affinity for a pair of
types wins; on a tie the first registered wins.
A lookup reads a snapshot of the registrations, so a converter may register others while it is asked for its affinity.
Members
new
fn new() -> Self
An empty registry.
register
fn register(self: &Self, converter: Rc<dyn ISetMethodBindingConverter>)
Registers converter (Register).
try_get_converter
fn try_get_converter(self: &Self, from_type: Option<ConverterType>, to_type: Option<ConverterType>) -> Option<Rc<dyn ISetMethodBindingConverter>>
The converter of the highest positive affinity for from_type and to_type, either of
which may be unknown, or None (TryGetConverter).
get_all_converters
fn get_all_converters(self: &Self) -> Vec<Rc<dyn ISetMethodBindingConverter>>
Every registered converter, in the order of registration (GetAllConverters).
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyDefaultDebug
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.