pub struct ObservableCollectionAdaptor<T, K> { /* private fields */ }Expand description
Applies the change sets of a cache to an observable collection, loading it with a reset above
a threshold of changes (ObservableCollectionAdaptor<TObject, TKey>).
Implementations§
Source§impl<T: Clone + PartialEq + 'static, K: Eq + Hash + Clone + 'static> ObservableCollectionAdaptor<T, K>
impl<T: Clone + PartialEq + 'static, K: Eq + Hash + Clone + 'static> ObservableCollectionAdaptor<T, K>
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 (ObservableCollectionAdaptor(int, bool, bool)).
Sourcepub fn with_options(options: BindingOptions) -> Self
pub fn with_options(options: BindingOptions) -> Self
The adaptor with options (ObservableCollectionAdaptor(BindingOptions)).
Sourcepub fn with_use_replace_for_updates(use_replace_for_updates: bool) -> Self
pub fn with_use_replace_for_updates(use_replace_for_updates: bool) -> Self
The defaults with the choice of replacements (ObservableCollectionAdaptor(useReplaceForUpdates: ..)).
Trait Implementations§
Source§impl<T: Clone + PartialEq + 'static, K: Eq + Hash + Clone + 'static> Default for ObservableCollectionAdaptor<T, K>
impl<T: Clone + PartialEq + 'static, K: Eq + Hash + Clone + 'static> Default for ObservableCollectionAdaptor<T, K>
Source§impl<T: Clone + PartialEq + 'static, K: Eq + Hash + Clone + 'static> IObservableCollectionAdaptor<T, K> for ObservableCollectionAdaptor<T, K>
impl<T: Clone + PartialEq + 'static, K: Eq + Hash + Clone + 'static> IObservableCollectionAdaptor<T, K> for ObservableCollectionAdaptor<T, K>
Source§fn adapt(
&self,
changes: &ChangeSet<T, K>,
collection: &dyn IObservableCollection<T>,
)
fn adapt( &self, changes: &ChangeSet<T, K>, collection: &dyn IObservableCollection<T>, )
Applies
changes to collection (Adapt).Auto Trait Implementations§
impl<T, K> !Freeze for ObservableCollectionAdaptor<T, K>
impl<T, K> !RefUnwindSafe for ObservableCollectionAdaptor<T, K>
impl<T, K> !Sync for ObservableCollectionAdaptor<T, K>
impl<T, K> Send for ObservableCollectionAdaptor<T, K>
impl<T, K> Unpin for ObservableCollectionAdaptor<T, K>
impl<T, K> UnsafeUnpin for ObservableCollectionAdaptor<T, K>where
RefCell<Cache<T, K>>: UnsafeUnpin,
impl<T, K> UnwindSafe for ObservableCollectionAdaptor<T, K>where
RefCell<Cache<T, K>>: UnwindSafe,
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