FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    Members

    new

    fn new() -> Self
    

    A service with empty registries.

    Source

    typed_converters

    fn typed_converters(self: &Self) -> &BindingTypeConverterRegistry
    

    The typed converters (TypedConverters).

    Source

    fallback_converters

    fn fallback_converters(self: &Self) -> &BindingFallbackConverterRegistry
    

    The fallback converters (FallbackConverters).

    Source

    set_method_converters

    fn set_method_converters(self: &Self) -> &SetMethodBindingConverterRegistry
    

    The set-method converters (SetMethodConverters).

    Source

    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.

    Source

    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).

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ConverterMigrationHelperMixins
    • Default
    • Debug

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.