Skip to main content

prefix_range

Function prefix_range 

Source
pub fn prefix_range(prefix: impl AsRef<[u8]>) -> (Vec<u8>, Option<Vec<u8>>)
Expand description

Return the half-open byte range covering all keys with prefix.

Use the returned (start, end) with crate::Prolly::range or crate::Prolly::range_diff.