Skip to main content

EntityHashMap

Type Alias EntityHashMap 

Source
pub type EntityHashMap<V> = EntityEquivalentHashMap<Entity, V>;
Expand description

A HashMap pre-configured to use EntityHash hashing with an Entity.

Aliased Type§

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

Trait Implementations§

Source§

impl EntityMapper for EntityHashMap<Entity>

Source§

fn get_mapped(&mut self, source: Entity) -> Entity

Returns the corresponding mapped entity or returns entity if there is no mapped entity

Source§

fn set_mapped(&mut self, source: Entity, target: Entity)

Maps the target entity to the given source. For some implementations this might not actually determine the result of EntityMapper::get_mapped.
Source§

impl<V, Q: EntityEquivalent + Hash + ?Sized> Index<&Q> for EntityHashMap<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