pub enum DataChanges<Index> {
None,
NoPreparedItems,
Range(Range<Index>),
Any,
}Expand description
Indicates whether an update to a DataClerk changes any keys or values
Variants§
None
Indicates that no changes to the data set occurred.
NoPreparedItems
Indicates that changes to the data set may have occurred, but that
DataClerk::update_token and DataClerk::item results are
unchanged for the view_range.
Range(Range<Index>)
Indicates that tokens for the given range may require an update
and/or that items for the given range have changed.
DataClerk::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.
Trait Implementations§
Source§impl<Index: Clone> Clone for DataChanges<Index>
impl<Index: Clone> Clone for DataChanges<Index>
Source§fn clone(&self) -> DataChanges<Index>
fn clone(&self) -> DataChanges<Index>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<Index: Debug> Debug for DataChanges<Index>
impl<Index: Debug> Debug for DataChanges<Index>
Source§impl<Index: PartialEq> PartialEq for DataChanges<Index>
impl<Index: PartialEq> PartialEq for DataChanges<Index>
impl<Index: Eq> Eq for DataChanges<Index>
impl<Index> StructuralPartialEq for DataChanges<Index>
Auto Trait Implementations§
impl<Index> Freeze for DataChanges<Index>where
Index: Freeze,
impl<Index> RefUnwindSafe for DataChanges<Index>where
Index: RefUnwindSafe,
impl<Index> Send for DataChanges<Index>where
Index: Send,
impl<Index> Sync for DataChanges<Index>where
Index: Sync,
impl<Index> Unpin for DataChanges<Index>where
Index: Unpin,
impl<Index> UnwindSafe for DataChanges<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
Mutably borrows from an owned value. Read more
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
Cast to integer, truncating Read more
Source§fn cast_nearest(self) -> T
fn cast_nearest(self) -> T
Cast to the nearest integer Read more
Source§fn cast_floor(self) -> T
fn cast_floor(self) -> T
Cast the floor to an integer Read more
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>
Convert
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>
Convert
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)
Convert
&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)
Convert
&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
Compare self to
key and return true if they are equal.