pub enum ChangeReason {
Add = 0,
Update = 1,
Remove = 2,
Refresh = 3,
Moved = 4,
}Expand description
The reason of a change of a cache (ChangeReason).
Variants§
Add = 0
An item was added (Add).
Update = 1
An item replaced the item of its key (Update).
Remove = 2
An item was removed (Remove).
Refresh = 3
An item asks to be evaluated again by the operators downstream: filters, sorts, groups
(Refresh).
Moved = 4
An item moved within a sorted collection (Moved).
Trait Implementations§
Source§impl Clone for ChangeReason
impl Clone for ChangeReason
impl Copy for ChangeReason
Source§impl Debug for ChangeReason
impl Debug for ChangeReason
impl Eq for ChangeReason
Source§impl Hash for ChangeReason
impl Hash for ChangeReason
Source§impl Ord for ChangeReason
impl Ord for ChangeReason
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for ChangeReason
impl PartialEq for ChangeReason
Source§impl PartialOrd for ChangeReason
impl PartialOrd for ChangeReason
impl StructuralPartialEq for ChangeReason
Auto Trait Implementations§
impl Freeze for ChangeReason
impl RefUnwindSafe for ChangeReason
impl Send for ChangeReason
impl Sync for ChangeReason
impl Unpin for ChangeReason
impl UnsafeUnpin for ChangeReason
impl UnwindSafe for ChangeReason
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