Skip to main content

prefix_successor

Function prefix_successor 

Source
pub fn prefix_successor(prefix: Vec<u8>) -> Option<Vec<u8>>
Expand description

Returns the least byte prefix strictly after every key with this prefix.

Trailing maximum bytes are removed before the remaining last byte advances. An empty or all-maximum prefix has no successor. The owned buffer is reused.