FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    PropertyChangingObservable

    struct · ferroui-reactiveui · v0.5.0

    struct PropertyChangingObservable<S: ?Sized + 'static, T: 'static>
    

    The values of one property of an object that raises PropertyChanging: the current value on subscription, then the value before each change of the property or of every property (an empty name) (PropertyChangingObservable<T>).

    A notification raised while the current value is read on subscription is delivered after it; one raised while a value is being delivered is delivered at once, nested, as upstream's re-entrant delivery does on its own thread.

    View source

    Members

    new

    fn new(source: &Rc<S>, property_name: impl Into<String>, getter: impl Fn(&Rc<S>) -> T + 'static) -> Self
    

    The values of property_name of source, read with getter before each change.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • SubscribeGuard<T>
    • IObservable<T>

    Availability

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