pub struct SortedObservableCollectionAdaptor { /* private fields */ }Expand description
Applies the sorted change sets of a cache to an observable collection at the positions they
give, loading it with a reset above a threshold of changes
(SortedObservableCollectionAdaptor<TObject, TKey>).
Implementations§
Source§impl SortedObservableCollectionAdaptor
impl SortedObservableCollectionAdaptor
Sourcepub fn new(
refresh_threshold: usize,
use_replace_for_updates: bool,
reset_on_first_time_load: bool,
) -> Self
pub fn new( refresh_threshold: usize, use_replace_for_updates: bool, reset_on_first_time_load: bool, ) -> Self
The adaptor with every part (SortedObservableCollectionAdaptor(int, bool useReplaceForUpdates = true, bool resetOnFirstTimeLoad = true)).
Sourcepub fn with_options(options: BindingOptions) -> Self
pub fn with_options(options: BindingOptions) -> Self
The adaptor with options (SortedObservableCollectionAdaptor(BindingOptions)).
Trait Implementations§
impl Copy for SortedObservableCollectionAdaptor
Source§impl<T: Clone + PartialEq + 'static, K: 'static> ISortedObservableCollectionAdaptor<T, K> for SortedObservableCollectionAdaptor
impl<T: Clone + PartialEq + 'static, K: 'static> ISortedObservableCollectionAdaptor<T, K> for SortedObservableCollectionAdaptor
Source§fn adapt(
&self,
changes: &SortedChangeSet<T, K>,
collection: &dyn IObservableCollection<T>,
)
fn adapt( &self, changes: &SortedChangeSet<T, K>, collection: &dyn IObservableCollection<T>, )
Applies
changes to collection (Adapt).Auto Trait Implementations§
impl Freeze for SortedObservableCollectionAdaptor
impl RefUnwindSafe for SortedObservableCollectionAdaptor
impl Send for SortedObservableCollectionAdaptor
impl Sync for SortedObservableCollectionAdaptor
impl Unpin for SortedObservableCollectionAdaptor
impl UnsafeUnpin for SortedObservableCollectionAdaptor
impl UnwindSafe for SortedObservableCollectionAdaptor
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