Skip to main content

EntityIndexMap

Type Alias EntityIndexMap 

Source
pub type EntityIndexMap<V> = EntityEquivalentIndexMap<Entity, V>;
Expand description

An IndexMap pre-configured to use EntityHash hashing with an Entity.

Aliased Type§

pub struct EntityIndexMap<V>(/* private fields */);

Trait Implementations§

Source§

impl<V, Q: EntityEquivalent + ?Sized> Index<&Q> for EntityIndexMap<V>

Source§

type Output = V

The returned type after indexing.
Source§

fn index(&self, key: &Q) -> &V

Performs the indexing (container[index]) operation. Read more