MCPcopy Create free account
hub / github.com/KentBeck/BPlusTree3 / id

Method id

rust/src/types.rs:139–144  ·  view source on GitHub ↗

Return the raw node ID.

(&self)

Source from the content-addressed store, hash-verified

137impl<K, V> NodeRef<K, V> {
138 /// Return the raw node ID.
139 pub fn id(&self) -> NodeId {
140 match *self {
141 NodeRef::Leaf(id, _) => id,
142 NodeRef::Branch(id, _) => id,
143 }
144 }
145
146 /// Returns true if this reference points to a leaf node.
147 pub fn is_leaf(&self) -> bool {

Callers 1

insertMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected