pub struct ListObservableCollectionAdaptor<T: Clone + PartialEq + 'static> { /* private fields */ }Expand description
Applies the change sets of a list to an observable collection, loading it with a reset above
a threshold of changes (ObservableCollectionAdaptor<T>).
Implementations§
Source§impl<T: Clone + PartialEq + 'static> ListObservableCollectionAdaptor<T>
impl<T: Clone + PartialEq + 'static> ListObservableCollectionAdaptor<T>
Sourcepub fn new(collection: Rc<dyn IObservableCollection<T>>) -> Self
pub fn new(collection: Rc<dyn IObservableCollection<T>>) -> Self
The adaptor with the default options (ObservableCollectionAdaptor(IObservableCollection<T>),
DynamicDataOptions.Binding).
Sourcepub fn with_options(
collection: Rc<dyn IObservableCollection<T>>,
options: BindingOptions,
) -> Self
pub fn with_options( collection: Rc<dyn IObservableCollection<T>>, options: BindingOptions, ) -> Self
The adaptor with options (ObservableCollectionAdaptor(IObservableCollection<T>, BindingOptions)).
Sourcepub fn with_threshold(
collection: Rc<dyn IObservableCollection<T>>,
refresh_threshold: usize,
allow_replace: bool,
reset_on_first_time_load: bool,
) -> Self
pub fn with_threshold( collection: Rc<dyn IObservableCollection<T>>, refresh_threshold: usize, allow_replace: bool, reset_on_first_time_load: bool, ) -> Self
The adaptor with every part (ObservableCollectionAdaptor(IObservableCollection<T>, int, bool allowReplace = true, bool resetOnFirstTimeLoad = true)).
Trait Implementations§
Source§impl<T: Clone + PartialEq + 'static> IChangeSetAdaptor<T> for ListObservableCollectionAdaptor<T>
impl<T: Clone + PartialEq + 'static> IChangeSetAdaptor<T> for ListObservableCollectionAdaptor<T>
Auto Trait Implementations§
impl<T> !Freeze for ListObservableCollectionAdaptor<T>
impl<T> !RefUnwindSafe for ListObservableCollectionAdaptor<T>
impl<T> !Send for ListObservableCollectionAdaptor<T>
impl<T> !Sync for ListObservableCollectionAdaptor<T>
impl<T> !UnwindSafe for ListObservableCollectionAdaptor<T>
impl<T> Unpin for ListObservableCollectionAdaptor<T>
impl<T> UnsafeUnpin for ListObservableCollectionAdaptor<T>
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