FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    PropertyValue

    struct · ferroui-dynamic-data · v0.5.0

    struct PropertyValue<T, V>
    

    A value of a property and the object it was read from (PropertyValue<TObject, TValue>).

    Upstream's value of a path that a null step interrupts is the default value of TValue, with a flag (UnobtainableValue); here it is None (value).

    View source

    Members

    new

    fn new(sender: T, value: V) -> Self
    

    The value of a property of sender (PropertyValue(TObject sender, TValue value)).

    Source

    unobtainable

    fn unobtainable(sender: T) -> Self
    

    A value that could not be read, as a step of the path was null (PropertyValue(TObject sender)).

    Source

    sender

    fn sender(self: &Self) -> &T
    

    The object the value was read from (Sender).

    Source

    value

    fn value(self: &Self) -> Option<&V>
    

    The value (Value); None when it could not be read.

    Source

    into_value

    fn into_value(self: Self) -> Option<V>
    

    The value, giving up the rest.

    Source

    is_unobtainable

    fn is_unobtainable(self: &Self) -> bool
    

    Whether the value could not be read, as a step of the path was null (UnobtainableValue).

    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
    • ToString
    • Clone
    • PartialEq
    • Display
    • Debug

    Availability

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