BindingFallbackConverterRegistry
struct · ferroui-reactiveui · v0.5.0
struct BindingFallbackConverterRegistry
The fallback converters, asked when no typed converter handles a pair of types
(BindingFallbackConverterRegistry). The one with the highest positive affinity for the pair
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 IBindingFallbackConverter>)
Registers converter (Register).
try_get_converter
fn try_get_converter(self: &Self, from_type: ConverterType, to_type: ConverterType) -> Option<Rc<dyn IBindingFallbackConverter>>
The converter of the highest positive affinity from from_type to to_type, or None
(TryGetConverter).
get_all_converters
fn get_all_converters(self: &Self) -> Vec<Rc<dyn IBindingFallbackConverter>>
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.