Function sled_search::max [−][src]
pub fn max(tree: &Tree) -> Result<Option<(Vec<u8>, Vec<u8>)>, ()>
Find the maximum entry within the given Tree
using a binary search.
- Repeatedly appending
0xFF
until scan next returnsNone
. - Binary search the final byte to find the greatest value that causes
scan.next
to returnSome
. - GOTO 1.
The key has been found when the binary search in step 2. finds no keys that return Some
.