MCPcopy Create free account
hub / github.com/carsonpo/haystackdb / is_node_full

Method is_node_full

src/structures/tree.rs:79–81  ·  view source on GitHub ↗
(&self, node: &Node<K, V>)

Source from the content-addressed store, hash-verified

77 }
78
79 fn is_node_full(&self, node: &Node<K, V>) -> Result<bool, io::Error> {
80 Ok(node.keys.len() == node.max_keys)
81 }
82
83 pub fn search(&self, key: K) -> Result<Option<V>, io::Error> {
84 self.search_node(&*self.root, key)

Callers 2

insertMethod · 0.80
insert_non_fullMethod · 0.80

Calls 1

lenMethod · 0.80

Tested by

no test coverage detected