Struct rusty_leveldb::DefaultCmp
source · [−]pub struct DefaultCmp;
Expand description
The default byte-wise comparator.
Trait Implementations
sourceimpl Clone for DefaultCmp
impl Clone for DefaultCmp
sourcefn clone(&self) -> DefaultCmp
fn clone(&self) -> DefaultCmp
Returns a copy of the value. Read more
1.0.0const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Cmp for DefaultCmp
impl Cmp for DefaultCmp
sourcefn id(&self) -> &'static str
fn id(&self) -> &'static str
A unique identifier for a comparator. A comparator wrapper (like InternalKeyCmp) may
return the id of its inner comparator. Read more
sourcefn find_shortest_sep(&self, a: &[u8], b: &[u8]) -> Vec<u8>
fn find_shortest_sep(&self, a: &[u8], b: &[u8]) -> Vec<u8>
Return the shortest byte string that compares “Greater” to the first argument and “Less” to
the second one. Read more
sourcefn find_short_succ(&self, a: &[u8]) -> Vec<u8>
fn find_short_succ(&self, a: &[u8]) -> Vec<u8>
Return the shortest byte string that compares “Greater” to the argument.
Auto Trait Implementations
impl RefUnwindSafe for DefaultCmp
impl Send for DefaultCmp
impl Sync for DefaultCmp
impl Unpin for DefaultCmp
impl UnwindSafe for DefaultCmp
Blanket Implementations
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstablefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> ToOwned for Twhere
T: Clone,
impl<T> ToOwned for Twhere
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
fn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
Uses borrowed data to replace owned data, usually by cloning. Read more