Return the raw node ID.
(&self)
| 137 | impl<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 { |