FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    CollectionChangedEventManager

    struct · ferroui-controls · v0.5.0

    struct CollectionChangedEventManager
    

    Dispatches the changes of notifying collections to weakly held listeners. A collection is subscribed to once, however many listeners it has.

    View source

    Members

    add_listener

    fn add_listener(collection: &ItemsSource, listener: Weak<dyn ICollectionChangedListener>)
    

    Adds a listener to a collection. Panics if the listener is already registered for the collection. Does nothing for a collection that does not notify.

    Source

    remove_listener

    fn remove_listener(collection: &ItemsSource, listener: &Weak<dyn ICollectionChangedListener>)
    

    Removes a listener from a collection. Panics if the listener is not registered for the collection.

    Source

    Trait implementations

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

    Availability

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