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