MCPcopy Create free account
hub / github.com/douchuan/algorithm / new_leaf

Method new_leaf

src/tree/binary/node.rs:51–53  ·  view source on GitHub ↗
(key: K, val: Option<V>, parent: Option<NonNull<Node<K, V>>>)

Source from the content-addressed store, hash-verified

49 }
50
51 pub fn new_leaf(key: K, val: Option<V>, parent: Option<NonNull<Node<K, V>>>) -> NonNull<Self> {
52 Self::new(key, val, None, None, parent)
53 }
54
55 pub fn new_key(key: K) -> NonNull<Self> {
56 Self::new_leaf(key, None, None)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected