pub enum ValueModel {
Zero,
Typed,
VarTyped,
}Expand description
Value-model of a collection (how the value is serialized on disk).
Variants§
Zero
Fixed-size, zerocopy-transmute (ZeroTree/ZeroMap).
Typed
Codec value inline in the index (TypedTree/TypedMap).
VarTyped
Codec value on disk + LRU cache, pointer in the index (VarTypedTree/VarTypedMap).
Trait Implementations§
Source§impl Clone for ValueModel
impl Clone for ValueModel
Source§fn clone(&self) -> ValueModel
fn clone(&self) -> ValueModel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ValueModel
Source§impl Debug for ValueModel
impl Debug for ValueModel
impl Eq for ValueModel
Source§impl PartialEq for ValueModel
impl PartialEq for ValueModel
Source§fn eq(&self, other: &ValueModel) -> bool
fn eq(&self, other: &ValueModel) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ValueModel
impl Serialize for ValueModel
impl StructuralPartialEq for ValueModel
Auto Trait Implementations§
impl Freeze for ValueModel
impl RefUnwindSafe for ValueModel
impl Send for ValueModel
impl Sync for ValueModel
impl Unpin for ValueModel
impl UnsafeUnpin for ValueModel
impl UnwindSafe for ValueModel
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