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).
Members
new
fn new(sender: T, value: V) -> Self
The value of a property of sender (PropertyValue(TObject sender, TValue value)).
unobtainable
fn unobtainable(sender: T) -> Self
A value that could not be read, as a step of the path was null
(PropertyValue(TObject sender)).
sender
fn sender(self: &Self) -> &T
The object the value was read from (Sender).
value
fn value(self: &Self) -> Option<&V>
The value (Value); None when it could not be read.
into_value
fn into_value(self: Self) -> Option<V>
The value, giving up the rest.
is_unobtainable
fn is_unobtainable(self: &Self) -> bool
Whether the value could not be read, as a step of the path was null (UnobtainableValue).
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedToStringClonePartialEqDisplayDebug
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.