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

Method new_unhashed

src/pointer.rs:29–31  ·  view source on GitHub ↗

Creates a new [Pointer] from a [Location] with an unhashed [RlpNode].

(location: Location)

Source from the content-addressed store, hash-verified

27
28 /// Creates a new [Pointer] from a [Location] with an unhashed [RlpNode].
29 pub fn new_unhashed(location: Location) -> Self {
30 Self { location, rlp: RlpNode::from_rlp(&[]) }
31 }
32
33 /// Returns the [RlpNode] wrapped by the [Pointer].
34 pub fn rlp(&self) -> &RlpNode {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected