NotifyCollectionChangedExtensions
struct · ferroui-base · v0.5.0
struct NotifyCollectionChangedExtensions
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.
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.
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.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyErasedDestructorIntoEither
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.