Trait abstutil::IndexableKey[][src]

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

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

fn index(&self) -> usize[src]

Loading content...

Implementors

Loading content...