Structs
- A
NibbleSlicePlanis a blueprint for decoding a nibble slice from a byte slice. TheNibbleSlicePlanis created by parsing a byte slice and can be reused multiple times. - An
OwnedNodeis an owned type from which aNodecan 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
NodeHandlePlanis a decoding plan for constructing aNodeHandlefrom an encoded trie node. This is used as a substructure ofNodePlan. SeeNodePlanfor details. - Owned version of
Node. - A
NodePlanis a blueprint for decoding a node from a byte slice. TheNodePlanis created by parsing an encoded node and can be reused multiple times. This is useful as aNodeborrows 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).