FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ObservableForPropertySink

    struct · ferroui-reactiveui · v0.5.0

    struct ObservableForPropertySink<T: 'static, V: 'static>
    

    Produces the value of a property on subscription, unless skipped, and again on each notification of a property observer (ObservableForPropertySink<TSender, TValue>).

    The value is read with the getter on every notification; the value of the notification is not used. The errors and the completion of the notifications pass through.

    View source

    Members

    new

    fn new(sender: &Rc<T>, expression: impl Into<String>, notifications: Rc<dyn IObservable<ObservedChange<PropertyOwner, ()>>>, read_value: impl Fn(&Rc<T>) -> V + 'static, skip_initial: bool, comparer: Option<ValueComparer<V>>) -> Self
    

    The values of the property expression of sender, read with read_value on each of notifications; comparer, when given, drops a value equal to the last one (isDistinct).

    Source

    Trait implementations

    Availability

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