FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    CommandBinderService

    struct · ferroui-reactiveui · v0.5.0

    struct CommandBinderService
    

    Finds the ICreatesCommandBinding with the highest affinity for a type of control (CommandBinderService), as the property observation finds its observer.

    View source

    Members

    get_binder

    fn get_binder<T: ?Sized + 'static>(has_event_target: bool) -> Option<Rc<dyn ICreatesCommandBinding>>
    

    The registered binder with the highest positive affinity for the control type T; of equal affinities the first registered wins; None when every binder answers zero or less (GetBinder<T>(bool hasEventTarget)).

    Source

    get_binder_for

    fn get_binder_for(target_type: TypeId, has_event_target: bool) -> Option<Rc<dyn ICreatesCommandBinding>>
    

    get_binder for the control type target_type.

    Source

    get_binder_above

    fn get_binder_above(target_type: TypeId, own_affinity: i32, has_event_target: bool) -> Option<Rc<dyn ICreatesCommandBinding>>
    

    The registered binder with the highest affinity for target_type when it outranks own_affinity, the affinity of the binding the caller would make itself (CommandBindingAffinityChecker.HasHigherAffinityPlugin<T> and GetBinder<T>).

    Source

    Trait implementations

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

    Availability

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