Trait abstutil::IndexableKey[][src]

pub trait IndexableKey {
    fn index(&self) -> usize;
}
Expand description

Use with FixedMap. From a particular key, extract a usize. These values should be roughly contiguous; the space used by the FixedMap will be O(n) with respect to the largest value returned here.

Required methods

Implementors