[−][src]Trait leveldb::database::comparator::Comparator
A comparator has two important functions:
- the name function returns a fixed name to detect errors when opening databases with a different name
- The comparison implementation
Associated Types
Loading content...Required methods
fn name(&self) -> *const c_char
Return the name of the Comparator
fn compare(&self, a: &Self::K, b: &Self::K) -> Ordering
compare two keys. This must implement a total ordering.