pub struct NodeRefDeltaMptCompact { /* private fields */ }Expand description
The MSB is used to indicate if a node is in mem or on disk, the rest 31 bits specifies the index of the node in the memory region.
It’s necessary to use MaybeNodeRef in ChildrenTable because it consumes less space than NodeRef.
Implementations§
Source§impl NodeRefDeltaMptCompact
 
impl NodeRefDeltaMptCompact
Sourcepub const DIRTY_SLOT_LIMIT: u32 = 2_147_483_647u32
 
pub const DIRTY_SLOT_LIMIT: u32 = 2_147_483_647u32
Valid dirty slot ranges from [0..DIRTY_SLOT_LIMIT). The DIRTY_SLOT_LIMIT is reserved for MaybeNodeRefDeltaMptCompact#NULL.
pub fn new(value: CompactNodeRef) -> Self
Trait Implementations§
Source§impl Clone for NodeRefDeltaMptCompact
 
impl Clone for NodeRefDeltaMptCompact
Source§fn clone(&self) -> NodeRefDeltaMptCompact
 
fn clone(&self) -> NodeRefDeltaMptCompact
Returns a copy 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 Debug for NodeRefDeltaMptCompact
 
impl Debug for NodeRefDeltaMptCompact
Source§impl Decodable for NodeRefDeltaMptCompact
 
impl Decodable for NodeRefDeltaMptCompact
Source§impl Encodable for NodeRefDeltaMptCompact
 
impl Encodable for NodeRefDeltaMptCompact
Source§impl From<NodeRefDeltaMpt> for NodeRefDeltaMptCompact
 
impl From<NodeRefDeltaMpt> for NodeRefDeltaMptCompact
Source§fn from(node: NodeRefDeltaMpt) -> Self
 
fn from(node: NodeRefDeltaMpt) -> Self
Converts to this type from the input type.
Source§impl From<NodeRefDeltaMptCompact> for NodeRefDeltaMpt
 
impl From<NodeRefDeltaMptCompact> for NodeRefDeltaMpt
Source§fn from(x: NodeRefDeltaMptCompact) -> Self
 
fn from(x: NodeRefDeltaMptCompact) -> Self
Converts to this type from the input type.
Source§impl MallocSizeOf for NodeRefDeltaMptCompact
 
impl MallocSizeOf for NodeRefDeltaMptCompact
Source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
 
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
Source§impl PartialEq for NodeRefDeltaMptCompact
 
impl PartialEq for NodeRefDeltaMptCompact
impl Copy for NodeRefDeltaMptCompact
impl Eq for NodeRefDeltaMptCompact
impl StructuralPartialEq for NodeRefDeltaMptCompact
Auto Trait Implementations§
impl Freeze for NodeRefDeltaMptCompact
impl RefUnwindSafe for NodeRefDeltaMptCompact
impl Send for NodeRefDeltaMptCompact
impl Sync for NodeRefDeltaMptCompact
impl Unpin for NodeRefDeltaMptCompact
impl UnwindSafe for NodeRefDeltaMptCompact
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
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
Source§impl<T> ElementSatisfy<ElementNoConstrain> for T
 
impl<T> ElementSatisfy<ElementNoConstrain> for T
fn to_constrain_object(&self) -> &ElementNoConstrain
fn to_constrain_object_mut(&mut self) -> &mut ElementNoConstrain
§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.