PropertyObservable
struct · ferroui-reactiveui · v0.5.0
struct PropertyObservable<S: ?Sized + 'static, T: 'static>
The values of one property of an object that raises PropertyChanged: the current value on
subscription, then the value after each notification of the property or of every property
(PropertyObservable<T>).
A notification raised while a value is being delivered is delivered after it, with the value
read again; with distinct_until_changed, a value equal to the last one is dropped.
Members
new
fn new(source: &Rc<S>, property_name: impl Into<String>, getter: impl Fn(&Rc<S>) -> T + 'static, distinct_until_changed: bool) -> Self
where T: PartialEq
The values of property_name of source, read with getter.
with_comparer
fn with_comparer(source: &Rc<S>, property_name: impl Into<String>, getter: impl Fn(&Rc<S>) -> T + 'static, comparer: Option<ValueComparer<T>>) -> Self
The values of property_name of source, dropping a value that comparer finds equal to
the last one.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnySubscribeGuard<T>IObservable<T>
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.