1 2 3 4 5 6 7 8 9 10 11
pub mod algorithmic; pub mod rangemap; pub trait Indexer<T, S> { fn index(&self, v: T) -> S; } pub trait BuildIndexer<T, S> { type Indexer: Indexer<T, S>; fn build_indexer<C>(&self, min: T, max: T, ticks: &[C]) -> Self::Indexer; }