pub enum ValueType {
Value = 0,
Tombstone = 1,
WeakTombstone = 2,
MergeOperand = 3,
Indirection = 4,
CellRow = 5,
}Expand description
Value type (regular value or tombstone)
Variants§
Value = 0
Existing value
Tombstone = 1
Deleted value
WeakTombstone = 2
“Weak” deletion (a.k.a. SingleDelete in RocksDB)
MergeOperand = 3
Merge operand
Stores a partial update that will be combined with other operands
and/or a base value via a user-provided crate::MergeOperator.
Indirection = 4
Value pointer
Points to a blob in a blob file.
CellRow = 5
A row written as cells, some of which may keep their bytes in a blob
file (see [crate::blob_tree::field_row]). Reads as a put, like a
value, with each referenced cell resolved to its object.
Implementations§
Source§impl ValueType
impl ValueType
Sourcepub fn is_tombstone(self) -> bool
pub fn is_tombstone(self) -> bool
Returns true if the type is a tombstone marker (either normal or weak).
Sourcepub fn is_merge_operand(self) -> bool
pub fn is_merge_operand(self) -> bool
Returns true if the type is a merge operand.
Trait Implementations§
impl Copy for ValueType
impl Eq for ValueType
impl StructuralPartialEq for ValueType
Auto Trait Implementations§
impl Freeze for ValueType
impl RefUnwindSafe for ValueType
impl Send for ValueType
impl Sync for ValueType
impl Unpin for ValueType
impl UnsafeUnpin for ValueType
impl UnwindSafe for ValueType
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more