pub enum GeneratorChanges<Index> {
None,
LenOnly,
Range(Range<Index>),
Any,
}Expand description
Indicates whether an update to a DataGenerator has changed
Variants§
None
None indicates that no changes to the data has occurred.
LenOnly
Indicates that DataGenerator::len may have changed but generated
values have not changed.
Range(Range<Index>)
Indicates that items in the given range may require an update
DataGenerator::generate will be called for each index in the
intersection of the given range with the visible data range.
Any
Any indicates that changes to the data set may have occurred.
Trait Implementations§
Source§impl<Index: Clone> Clone for GeneratorChanges<Index>
impl<Index: Clone> Clone for GeneratorChanges<Index>
Source§fn clone(&self) -> GeneratorChanges<Index>
fn clone(&self) -> GeneratorChanges<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 GeneratorChanges<Index>
impl<Index: Debug> Debug for GeneratorChanges<Index>
Source§impl<Index: PartialEq> PartialEq for GeneratorChanges<Index>
impl<Index: PartialEq> PartialEq for GeneratorChanges<Index>
impl<Index: Eq> Eq for GeneratorChanges<Index>
impl<Index> StructuralPartialEq for GeneratorChanges<Index>
Auto Trait Implementations§
impl<Index> Freeze for GeneratorChanges<Index>where
Index: Freeze,
impl<Index> RefUnwindSafe for GeneratorChanges<Index>where
Index: RefUnwindSafe,
impl<Index> Send for GeneratorChanges<Index>where
Index: Send,
impl<Index> Sync for GeneratorChanges<Index>where
Index: Sync,
impl<Index> Unpin for GeneratorChanges<Index>where
Index: Unpin,
impl<Index> UnwindSafe for GeneratorChanges<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.