FerroObjectObservableForProperty
struct · ferroui-reactiveui-controls · v0.5.0
struct FerroObjectObservableForProperty
Observes a property of a FerroUI object through the registered property of that name
(FerroObjectObservableForProperty).
The observable raises after the value changes. The property system raises no notification before a change, so a request for one receives the same observable.
The object is the object of the PropertyOwner, in one of the forms
FerroObjectHandles::object_of recognises; the steps of
ferro_property give it.
Deviation (DEVIATIONS.md, ReactiveUI controls): the affinity is computed on the object (as every observer of the port does), and the registered property is found by the class of the object. The changes carry no value, as the changes of every observer of the port do: the reader reads the value from the object.
Members
FERRO_PROPERTY_AFFINITY
const FERRO_PROPERTY_AFFINITY: i32
The affinity of a registered property, the same as a dependency property of WPF
(FerroPropertyAffinity).
new
fn new() -> Self
The observer (new FerroObjectObservableForProperty()).
find_property
fn find_property(object: &FerroObject, property_name: &str) -> Option<&'static FerroProperty>
The property registered on the class of object under property_name, or None when the
class registers none by that name; the comparison is case-sensitive (FindProperty).
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedClassDefaultsErasedDestructorIntoEitherCreatesObservableForPropertyMixinsDebugDefaultCloneCopyICreatesObservableForProperty
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.