FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    NotifyCollectionChangedExtensions

    struct · ferroui-base · v0.5.0

    struct NotifyCollectionChangedExtensions
    

    View source

    Members

    get_weak_collection_changed_observable

    fn get_weak_collection_changed_observable(collection: &Rc<dyn INotifyCollectionChanged>) -> Rc<dyn IObservable<CollectionChange>>
    

    Gets a weak observable for the CollectionChanged event.

    Source

    weak_subscribe

    fn weak_subscribe(collection: &Rc<dyn INotifyCollectionChanged>, handler: impl Fn(&Rc<dyn INotifyCollectionChanged>, &CollectionChange) -> () + 'static) -> Rc<dyn IDisposable>
    

    Subscribes to the CollectionChanged event using a weak subscription.

    handler is called with the collection and the change when the collection event is raised. Disposing the returned handle terminates the subscription.

    Source

    weak_subscribe_action

    fn weak_subscribe_action(collection: &Rc<dyn INotifyCollectionChanged>, handler: impl Fn(&CollectionChange) -> () + 'static) -> Rc<dyn IDisposable>
    

    Subscribes to the CollectionChanged event using a weak subscription.

    handler is called with the change when the collection event is raised. Disposing the returned handle terminates the subscription.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ErasedDestructor
    • IntoEither

    Availability

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