pub struct NotifyCollectionChangedExtensions;Implementations§
Source§impl NotifyCollectionChangedExtensions
impl NotifyCollectionChangedExtensions
Sourcepub fn get_weak_collection_changed_observable(
collection: &Rc<dyn INotifyCollectionChanged>,
) -> Rc<dyn IObservable<CollectionChange>>
pub fn get_weak_collection_changed_observable( collection: &Rc<dyn INotifyCollectionChanged>, ) -> Rc<dyn IObservable<CollectionChange>>
Gets a weak observable for the CollectionChanged event.
Sourcepub fn weak_subscribe(
collection: &Rc<dyn INotifyCollectionChanged>,
handler: impl Fn(&Rc<dyn INotifyCollectionChanged>, &CollectionChange) + 'static,
) -> Rc<dyn IDisposable>
pub 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.
Sourcepub fn weak_subscribe_action(
collection: &Rc<dyn INotifyCollectionChanged>,
handler: impl Fn(&CollectionChange) + 'static,
) -> Rc<dyn IDisposable>
pub 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.
Auto Trait Implementations§
impl Freeze for NotifyCollectionChangedExtensions
impl RefUnwindSafe for NotifyCollectionChangedExtensions
impl Send for NotifyCollectionChangedExtensions
impl Sync for NotifyCollectionChangedExtensions
impl Unpin for NotifyCollectionChangedExtensions
impl UnsafeUnpin for NotifyCollectionChangedExtensions
impl UnwindSafe for NotifyCollectionChangedExtensions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more