Skip to main content

INotifyCollectionChangedSuspender

Trait INotifyCollectionChangedSuspender 

Source
pub trait INotifyCollectionChangedSuspender {
    // Required methods
    fn suspend_count(&self) -> Rc<dyn IDisposable>;
    fn suspend_notifications(&self) -> Rc<dyn IDisposable>;
}
Expand description

A collection whose notifications can be held back (INotifyCollectionChangedSuspender).

Required Methods§

Source

fn suspend_count(&self) -> Rc<dyn IDisposable>

Holds back the notifications of Count until the handle is disposed, which raises Count once if it changed (SuspendCount).

Source

fn suspend_notifications(&self) -> Rc<dyn IDisposable>

Holds back the notifications of changes and of Count until the handle is disposed, which raises Count and a reset (SuspendNotifications).

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§