MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / len

Method len

nodedb-spatial/src/rtree/node.rs:99–104  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

97 }
98
99 pub fn len(&self) -> usize {
100 match &self.kind {
101 NodeKind::Internal { children } => children.len(),
102 NodeKind::Leaf { entries } => entries.len(),
103 }
104 }
105
106 pub fn is_overflow(&self) -> bool {
107 self.len() > self.capacity()

Callers 2

is_overflowMethod · 0.45
is_underflowMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected