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.
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.
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.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyClassDefaultsErasedDestructorIntoEither
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.