FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    Members

    new

    fn new() -> Self
    

    An empty registry.

    Source

    register

    fn register(self: &Self, converter: Rc<dyn ISetMethodBindingConverter>)
    

    Registers converter (Register).

    Source

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

    Source

    get_all_converters

    fn get_all_converters(self: &Self) -> Vec<Rc<dyn ISetMethodBindingConverter>>
    

    Every registered converter, in the order of registration (GetAllConverters).

    Source

    Trait implementations

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

    Availability

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