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

Method new

src/pointer.rs:24–26  ·  view source on GitHub ↗

Creates a new [Pointer] from a [Location] and an [RlpNode].

(location: Location, rlp: RlpNode)

Source from the content-addressed store, hash-verified

22impl Pointer {
23 /// Creates a new [Pointer] from a [Location] and an [RlpNode].
24 pub fn new(location: Location, rlp: RlpNode) -> Self {
25 Self { location, rlp }
26 }
27
28 /// Creates a new [Pointer] from a [Location] with an unhashed [RlpNode].
29 pub fn new_unhashed(location: Location) -> Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected