Structs
- A
NibbleSlicePlan
is a blueprint for decoding a nibble slice from a byte slice. TheNibbleSlicePlan
is created by parsing a byte slice and can be reused multiple times. - An
OwnedNode
is an owned type from which aNode
can be constructed which borrows data from theOwnedNode
. This is useful for trie iterators.
Enums
- Type of node in the trie and essential information thereof.
- A reference to a trie node which may be stored within another trie node.
- Owned version of
NodeHandleOwned
. - A
NodeHandlePlan
is a decoding plan for constructing aNodeHandle
from an encoded trie node. This is used as a substructure ofNodePlan
. SeeNodePlan
for details. - Owned version of
Node
. - A
NodePlan
is a blueprint for decoding a node from a byte slice. TheNodePlan
is created by parsing an encoded node and can be reused multiple times. This is useful as aNode
borrows from a byte slice and this struct does not. - Value representation in
Node
. - Owned value representation in
Node
. - Plan for value representation in
NodePlan
.
Functions
- Read a hash from a slice into a Hasher output. Returns None if the slice is the wrong length.
Type Definitions
- Partial node key type: offset and owned value of a nibbleslice. Offset is applied on first byte of array (bytes are right aligned).