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

Method pred

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

Source from the content-addressed store, hash-verified

56 }
57
58 fn pred(&self, key: &K) -> Option<&K> {
59 unsafe { pred(self.root, key).map(|p| &p.as_ref().key) }
60 }
61}
62
63/// Ok(inserted node)

Callers 1

Calls 1

predFunction · 0.85

Tested by 1