FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    BindingAffinity

    struct · ferroui-reactiveui · v0.5.0

    struct BindingAffinity
    

    The affinity scores shared by the type converters, the property observers and the command binders: a higher value is a stronger match, and zero means that the candidate does not apply (BindingAffinity).

    DEFAULT_INTERNAL_TYPE_CONVERTER, DEFAULT_EVENT, EXPLICIT and EXACT_TYPE carry the values of ReactiveUI's scores of those names; the scores of the platforms are upstream's own, kept so that an observer of another platform ranks as it does there.

    View source

    Members

    FALLBACK

    const FALLBACK: i32
    

    The affinity of the observer of plain objects, the lowest match (Fallback).

    Source

    DEFAULT_INTERNAL_TYPE_CONVERTER

    const DEFAULT_INTERNAL_TYPE_CONVERTER: i32
    

    The affinity of the built-in value and string converters (DefaultInternalTypeConverter).

    Source

    DEFAULT_EVENT

    const DEFAULT_EVENT: i32
    

    The affinity of a binding to the conventional default event of a type (DefaultEvent).

    Source

    WPF_DEPENDENCY_OBJECT

    const WPF_DEPENDENCY_OBJECT: i32
    

    The affinity of a dependency property of WPF (WpfDependencyObject).

    Source

    EVENT_ENABLED_CONTROL

    const EVENT_ENABLED_CONTROL: i32
    

    The affinity of the command binding of a control with an enabled event (EventEnabledControl).

    Source

    EXPLICIT

    const EXPLICIT: i32
    

    The affinity of an explicit or interface-based match, such as INotifyPropertyChanged or a named event (Explicit).

    Source

    WIN_UI_DEPENDENCY_OBJECT

    const WIN_UI_DEPENDENCY_OBJECT: i32
    

    The affinity of a dependency property of WinUI (WinUiDependencyObject).

    Source

    WIN_FORMS_EVENT

    const WIN_FORMS_EVENT: i32
    

    The affinity of the event-based property observation of WinForms (WinFormsEvent).

    Source

    EXACT_TYPE

    const EXACT_TYPE: i32
    

    The affinity of a strong, exact-type match, such as IReactiveObject (ExactType).

    Source

    KVO

    const KVO: i32
    

    The affinity of key-value observing on Apple platforms (Kvo).

    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.