pub trait Index {
type Key: ?Sized + Hash + PartialEq + Eq;
// Required method
fn index(&self) -> &Self::Key;
}Available on crate feature
index-map only.Expand description
The main index type to implement for each type to be stored in an IndexMap.