ConverterService
struct · ferroui-reactiveui · v0.5.0
struct ConverterService
The converters of the bindings: the typed, fallback and set-method registries
(ConverterService). BindingConverters::current is the
one the bindings use; register_default_converters fills a
service with the built-in converters.
Members
newtyped_convertersfallback_convertersset_method_convertersresolve_converterresolve_set_method_converter
new
fn new() -> Self
A service with empty registries.
typed_converters
fn typed_converters(self: &Self) -> &BindingTypeConverterRegistry
The typed converters (TypedConverters).
fallback_converters
fn fallback_converters(self: &Self) -> &BindingFallbackConverterRegistry
The fallback converters (FallbackConverters).
set_method_converters
fn set_method_converters(self: &Self) -> &SetMethodBindingConverterRegistry
The set-method converters (SetMethodConverters).
resolve_converter
fn resolve_converter(self: &Self, from_type: ConverterType, to_type: ConverterType) -> Option<ResolvedConverter>
The converter from from_type to to_type: the typed converter of the exact pair with the
highest affinity, or else the fallback converter with the highest affinity, or None
(ResolveConverter). A typed converter wins over a fallback converter whatever their
affinities.
resolve_set_method_converter
fn resolve_set_method_converter(self: &Self, from_type: Option<ConverterType>, to_type: Option<ConverterType>) -> Option<Rc<dyn ISetMethodBindingConverter>>
The set-method converter for from_type and to_type (ResolveSetMethodConverter).
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyConverterMigrationHelperMixinsDefaultDebug
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.