Skip to main content

ListObservableCollectionAdaptor

Struct ListObservableCollectionAdaptor 

Source
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>

Source

pub fn new(collection: Rc<dyn IObservableCollection<T>>) -> Self

The adaptor with the default options (ObservableCollectionAdaptor(IObservableCollection<T>), DynamicDataOptions.Binding).

Source

pub fn with_options( collection: Rc<dyn IObservableCollection<T>>, options: BindingOptions, ) -> Self

The adaptor with options (ObservableCollectionAdaptor(IObservableCollection<T>, BindingOptions)).

Source

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>

Source§

fn adapt(&self, changes: &ChangeSet<T>)

Applies changes (Adapt).

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.