lookupvec 0.1.2

Container with Vec-like properties that also offers O(1) lookup of items based on an id field
Documentation
1
2
3
4
5
6
use std::hash::Hash;

pub trait Lookup {
    type Key: Hash + Eq + Clone;
    fn key(&self) -> Self::Key;
}