#[non_exhaustive]pub enum EntryValue<V> {
Value(V),
Deleted,
}Expand description
Sentinel value returned by TrackingDict::pop_accessed_write_items
when an entry was deleted rather than updated.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Value(V)
The key still exists and holds this value.
Deleted
The key was deleted since the last drain.
Trait Implementations§
Source§impl<V: Clone> Clone for EntryValue<V>
impl<V: Clone> Clone for EntryValue<V>
Source§fn clone(&self) -> EntryValue<V>
fn clone(&self) -> EntryValue<V>
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<V: Debug> Debug for EntryValue<V>
impl<V: Debug> Debug for EntryValue<V>
Source§impl<V: PartialEq> PartialEq for EntryValue<V>
impl<V: PartialEq> PartialEq for EntryValue<V>
impl<V: Eq> Eq for EntryValue<V>
impl<V> StructuralPartialEq for EntryValue<V>
Auto Trait Implementations§
impl<V> Freeze for EntryValue<V>where
V: Freeze,
impl<V> RefUnwindSafe for EntryValue<V>where
V: RefUnwindSafe,
impl<V> Send for EntryValue<V>where
V: Send,
impl<V> Sync for EntryValue<V>where
V: Sync,
impl<V> Unpin for EntryValue<V>where
V: Unpin,
impl<V> UnsafeUnpin for EntryValue<V>where
V: UnsafeUnpin,
impl<V> UnwindSafe for EntryValue<V>where
V: 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