ReactiveExtensions
struct · ferroui-diagnostics · v0.5.0
struct ReactiveExtensions
Observables of the properties of view models.
Members
get_observable
fn get_observable<TOwner, TValue>(vm: &Rc<TOwner>, property_name: &'static str, property: impl Fn(&TOwner) -> TValue + 'static, fire_immediately: bool) -> Rc<dyn IObservable<TValue>>
where TOwner: INotifyPropertyChanged + ?Sized + 'static,
TValue: 'static
vm.GetObservable(x => x.Property, fireImmediately): an observable of
the values of a property of a view model, produced again whenever the
view model notifies a change of the property.
The original takes the property as an expression and reads its name
and its value through reflection; here the name of the property and
the function that reads it are passed. When fire_immediately is set,
each observer receives the current value when it subscribes.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyClassDefaultsErasedDestructorIntoEither
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.