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

Method min

src/tree/binary/rb2.rs:179–181  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

177 }
178
179 fn min(&self) -> Option<&K> {
180 unsafe { bst::find_min(self.root).map(|p| &p.as_ref().key) }
181 }
182
183 fn max(&self) -> Option<&K> {
184 unsafe { bst::find_max(self.root).map(|p| &p.as_ref().key) }

Callers 1

keysMethod · 0.45

Calls 1

find_minFunction · 0.85

Tested by

no test coverage detected