pub enum InsertValue {
Prepend(u64),
PrependReplace(u64, LinkOffset),
Tombstone,
TombstonePrefix,
}Expand description
Specify value to insert. Used by insert_advanced.
Variants§
Prepend(u64)
Insert as a head of the existing linked list.
PrependReplace(u64, LinkOffset)
Replace the linked list. Then insert as a head.
Tombstone
Effectively delete associated values for the specified key.
TombstonePrefix
Effectively delete associated values for all keys starting with the prefix.
Trait Implementations§
Source§impl Clone for InsertValue
impl Clone for InsertValue
Source§fn clone(&self) -> InsertValue
fn clone(&self) -> InsertValue
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 moreimpl Copy for InsertValue
Auto Trait Implementations§
impl Freeze for InsertValue
impl RefUnwindSafe for InsertValue
impl Send for InsertValue
impl Sync for InsertValue
impl Unpin for InsertValue
impl UnwindSafe for InsertValue
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