Type Definition blart::InnerNode4
source · pub type InnerNode4<K, V> = InnerNodeCompressed<K, V, 4>;
Expand description
Node that references between 2 and 4 children
Trait Implementations§
source§impl<K, V> InnerNode for InnerNode4<K, V>
impl<K, V> InnerNode for InnerNode4<K, V>
§type GrownNode = InnerNodeCompressed<<InnerNodeCompressed<K, V, 4> as Node>::Key, <InnerNodeCompressed<K, V, 4> as Node>::Value, 16>
type GrownNode = InnerNodeCompressed<<InnerNodeCompressed<K, V, 4> as Node>::Key, <InnerNodeCompressed<K, V, 4> as Node>::Value, 16>
The type of the next larger node type.
§type Iter = InnerNodeCompressedIter<<InnerNodeCompressed<K, V, 4> as Node>::Key, <InnerNodeCompressed<K, V, 4> as Node>::Value>
type Iter = InnerNodeCompressedIter<<InnerNodeCompressed<K, V, 4> as Node>::Key, <InnerNodeCompressed<K, V, 4> as Node>::Value>
The type of the iterator over all children of the inner node
§type ShrunkNode = InnerNodeCompressed<<InnerNodeCompressed<K, V, 4> as Node>::Key, <InnerNodeCompressed<K, V, 4> as Node>::Value, 4>
type ShrunkNode = InnerNodeCompressed<<InnerNodeCompressed<K, V, 4> as Node>::Key, <InnerNodeCompressed<K, V, 4> as Node>::Value, 4>
The type of the next smaller node type.
source§fn lookup_child(&self, key_fragment: u8) -> Option<OpaqueNodePtr<K, V>>
fn lookup_child(&self, key_fragment: u8) -> Option<OpaqueNodePtr<K, V>>
Search through this node for a child node that corresponds to the given
key fragment.
source§fn write_child(&mut self, key_fragment: u8, child_pointer: OpaqueNodePtr<K, V>)
fn write_child(&mut self, key_fragment: u8, child_pointer: OpaqueNodePtr<K, V>)
Write a child pointer with key fragment to this inner node. Read more
source§fn remove_child(
&mut self,
key_fragment: u8
) -> Option<OpaqueNodePtr<<Self as Node>::Key, <Self as Node>::Value>>
fn remove_child( &mut self, key_fragment: u8 ) -> Option<OpaqueNodePtr<<Self as Node>::Key, <Self as Node>::Value>>
Attempt to remove a child pointer at the key fragment from this inner
node. Read more
source§fn grow(&self) -> Self::GrownNode
fn grow(&self) -> Self::GrownNode
Grow this node into the next larger class, copying over children and
prefix information.
source§fn shrink(&self) -> Self::ShrunkNode
fn shrink(&self) -> Self::ShrunkNode
Shrink this node into the next smaller class, copying over children and
prefix information. Read more
source§fn header_mut(&mut self) -> &mut Header
fn header_mut(&mut self) -> &mut Header
Access the header information for this node.
source§unsafe fn iter(&self) -> Self::Iter
unsafe fn iter(&self) -> Self::Iter
Create an iterator over all (key bytes, child pointers) in this inner
node. Read more