1 2 3 4 5 6 7 8 9 10 11
use super::comparator::*; pub trait Keyed: Clone { type Key: Send + Clone; } pub trait WithComparator: Keyed { type Comparator: Comparator<Self::Key>; fn comparator(&self) -> &Self::Comparator; }