Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
binary_search_tree_succ_pred
Function · 0.80
Calls
1
succ
Function · 0.85
Tested by
1
binary_search_tree_succ_pred
Function · 0.64