Enum scc::hash_index::ModifyAction
source · pub enum ModifyAction<V> {
Keep,
Remove,
Update(V),
}
Expand description
Specifies possible actions of HashIndex::modify
and HashIndex::modify_async
on an
entry.
Variants§
Keep
Do nothing.
Option::None
is coerced to ModifyAction::Keep
.
Remove
Do remove the entry.
Some(None)
is coerced to ModifyAction::Remove
.
Update(V)
Do update the entry.
Some(Some(V))
is coerced to ModifyAction::Update
.
Trait Implementations§
source§impl<V> Debug for ModifyAction<V>
impl<V> Debug for ModifyAction<V>
Auto Trait Implementations§
impl<V> RefUnwindSafe for ModifyAction<V>where V: RefUnwindSafe,
impl<V> Send for ModifyAction<V>where V: Send,
impl<V> Sync for ModifyAction<V>where V: Sync,
impl<V> Unpin for ModifyAction<V>where V: Unpin,
impl<V> UnwindSafe for ModifyAction<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