FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    PropertyOwner

    struct · ferroui-system · v0.5.0

    struct PropertyOwner
    

    The object that owns the property of one step of a path, as an observer chosen at run time sees it (the sender of upstream's ICreatesObservableForProperty).

    object is the object itself, which an observer downcasts to the types it knows; notify is its change notification, when it raises PropertyChanged. A step that cannot give its object (a PropertyPath::value step, or an optional_property step whose object is None) leaves both None.

    View source

    Members

    object

    object: Option<std::rc::Rc<dyn Any>>
    

    The object that owns the property.

    Source

    notify

    notify: Option<std::rc::Rc<dyn INotifyPropertyChanged>>
    

    The change notification of the object, when it raises PropertyChanged.

    Source

    same_object

    fn same_object(self: &Self, other: &PropertyOwner) -> bool
    

    Whether the two owners are the same object (reference equality, as .NET compares senders).

    Source

    Trait implementations

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

    Availability

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