Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/douchuan/algorithm
/ max
Method
max
src/tree/binary/rb2.rs:183–185 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
181
}
182
183
fn max(&self) -> Option<&K> {
184
unsafe { bst::find_max(self.root).map(|p| &p.as_ref().key) }
185
}
186
187
fn keys(&self) -> Vec<&K> {
188
if self.is_empty() {
Callers
1
keys
Method · 0.45
Calls
1
find_max
Function · 0.85
Tested by
no test coverage detected