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

Method max

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

Source from the content-addressed store, hash-verified

48 }
49
50 fn max(&self) -> Option<&K> {
51 unsafe { find_max(self.root).map(|p| &p.as_ref().key) }
52 }
53
54 fn succ(&self, key: &K) -> Option<&K> {
55 unsafe { succ(self.root, key).map(|p| &p.as_ref().key) }

Callers 2

setup_new_maxFunction · 0.45

Calls 1

find_maxFunction · 0.85

Tested by 1