pub enum Changes<Index> {
None,
NoPreparedItems,
Range(Range<Index>),
Any,
}Expand description
Indicates whether an update to a clerk changes any available data
Variants§
None
Indicates that no changes to the data set occurred.
NoPreparedItems
Indicates that the data length may have changed and/or items outside the
current view_range may have changed.
I.e. this variant is applicable when within the subset of view_range
and the new data range (0..len), no index-key pairs have changed (no
re-ordering) and no item or token values have changed.
Range(Range<Index>)
Indicates that the data length may have changed and that keys and/or values within the given range may have changed.
TokenClerk::update_token will be called for each index in the
intersection of the given range with the view_range.
Any
Any indicates that changes to the data set may have occurred.
This is equivalent to Changes::Range(full_data_range).
Trait Implementations§
impl<Index: Eq> Eq for Changes<Index>
impl<Index> StructuralPartialEq for Changes<Index>
Auto Trait Implementations§
impl<Index> Freeze for Changes<Index>where
Index: Freeze,
impl<Index> RefUnwindSafe for Changes<Index>where
Index: RefUnwindSafe,
impl<Index> Send for Changes<Index>where
Index: Send,
impl<Index> Sync for Changes<Index>where
Index: Sync,
impl<Index> Unpin for Changes<Index>where
Index: Unpin,
impl<Index> UnwindSafe for Changes<Index>where
Index: 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
Source§impl<S, T> CastApprox<T> for Swhere
T: ConvApprox<S>,
impl<S, T> CastApprox<T> for Swhere
T: ConvApprox<S>,
Source§fn try_cast_approx(self) -> Result<T, Error>
fn try_cast_approx(self) -> Result<T, Error>
Source§fn cast_approx(self) -> T
fn cast_approx(self) -> T
Source§impl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
impl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
Source§fn cast_trunc(self) -> T
fn cast_trunc(self) -> T
Source§fn cast_nearest(self) -> T
fn cast_nearest(self) -> T
Source§fn cast_floor(self) -> T
fn cast_floor(self) -> T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.