MCPcopy Create free account
hub / github.com/base/triedb / new

Method new

src/node.rs:124–126  ·  view source on GitHub ↗
(prefix: Nibbles, kind: NodeKind)

Source from the content-addressed store, hash-verified

122 }
123
124 fn new(prefix: Nibbles, kind: NodeKind) -> Self {
125 Self(Box::new(NodeInner { prefix, kind }))
126 }
127
128 /// Returns the prefix of the [Node].
129 pub const fn prefix(&self) -> &Nibbles {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected