MCPcopy Create free account
hub / github.com/douchuan/algorithm / get

Method get

src/tree/binary/bst.rs:42–44  ·  view source on GitHub ↗
(&self, key: &K)

Source from the content-addressed store, hash-verified

40 }
41
42 fn get(&self, key: &K) -> Option<&V> {
43 unsafe { find(self.root, key).and_then(|p| p.as_ref().val.as_ref()) }
44 }
45
46 fn min(&self) -> Option<&K> {
47 unsafe { find_min(self.root).map(|p| &p.as_ref().key) }

Callers

nothing calls this directly

Calls 1

findFunction · 0.70

Tested by

no test coverage detected