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

Method min

src/tree/binary/bst.rs:46–48  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

44 }
45
46 fn min(&self) -> Option<&K> {
47 unsafe { find_min(self.root).map(|p| &p.as_ref().key) }
48 }
49
50 fn max(&self) -> Option<&K> {
51 unsafe { find_max(self.root).map(|p| &p.as_ref().key) }

Callers 1

Calls 1

find_minFunction · 0.85

Tested by 1