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

Method succ

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

Source from the content-addressed store, hash-verified

52 }
53
54 fn succ(&self, key: &K) -> Option<&K> {
55 unsafe { succ(self.root, key).map(|p| &p.as_ref().key) }
56 }
57
58 fn pred(&self, key: &K) -> Option<&K> {
59 unsafe { pred(self.root, key).map(|p| &p.as_ref().key) }

Callers 1

Calls 1

succFunction · 0.85

Tested by 1