Struct leveldb::database::comparator::OrdComparator [-] [+] [src]

pub struct OrdComparator<K> {
    // some fields omitted
}

OrdComparator is a comparator comparing Keys that implement Ord

Methods

impl<K> OrdComparator<K>

fn new() -> OrdComparator<K>

Create a new OrdComparator

Trait Implementations

impl<K: Key + Ord> Comparator for OrdComparator<K>

type K = K

fn name(&self) -> *const u8

fn compare(&self, a: &K, b: &K) -> Ordering

fn null() -> bool

Derived Implementations

impl<K: Copy> Copy for OrdComparator<K>