Struct rusty_leveldb::DefaultCmp
[−]
[src]
pub struct DefaultCmp;
The default byte-wise comparator.
Trait Implementations
impl Clone for DefaultCmp
[src]
fn clone(&self) -> DefaultCmp
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Cmp for DefaultCmp
[src]
fn cmp(&self, a: &[u8], b: &[u8]) -> Ordering
[src]
Compare to byte strings, bytewise.
fn id(&self) -> &'static str
[src]
A unique identifier for a comparator. A comparator wrapper (like InternalKeyCmp) may return the id of its inner comparator. Read more
fn find_shortest_sep(&self, a: &[u8], b: &[u8]) -> Vec<u8>
[src]
Return the shortest byte string that compares "Greater" to the first argument and "Less" to the second one. Read more
fn find_short_succ(&self, a: &[u8]) -> Vec<u8>
[src]
Return the shortest byte string that compares "Greater" to the argument.