Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NodeDB-Lab/nodedb
/ capacity
Method
capacity
nodedb-spatial/src/rtree/node.rs:91–97 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
89
}
90
91
pub fn capacity(&self) -> usize {
92
if self.is_leaf() {
93
LEAF_CAPACITY
94
} else {
95
INTERNAL_CAPACITY
96
}
97
}
98
99
pub fn len(&self) -> usize {
100
match &self.kind {
Callers
1
is_overflow
Method · 0.45
Calls
1
is_leaf
Method · 0.80
Tested by
no test coverage detected