pub fn insert(&mut self, entity: Entity, value: T) -> Option<(Entity, T)> {
        self.0
            .insert(entity.0, value)
            .map(|(gen_index, value)| (Entity(gen_index), value))
    }
/// Overwrites the entry with the matching index, returns both the Entity and T that were
/// replaced, which may be an entity from a past generation.
Overwrites the entry with the matching index, returns both the Entity and T that were
replaced, which may be an entity from a past generation.
Overwrites the entry with the matching index returns both the Entity and T that were replaced which may be an entity from a past generation .
pub fn insert(&mut self, entity: Entity, value: T) -> Option<(Entity, T)> {
        self.0
            .insert(entity.0, value)
            .map(|(gen_index, value)| (Entity(gen_index), value))
    }
pub fn insert ( & mut self , entity : Entity , value : T ) -> Option < ( Entity , T ) > { self . 0 . insert ( entity . 0 , value ) . map ( | ( gen_index , value ) | ( Entity ( gen_index ) , value ) ) }
Overwrites the entry with the matching index, returns both the Entity and T that were
replaced, which may be an entity from a past generation.
Overwrites the entry with the matching index returns both the Entity and T that were replaced which may be an entity from a past generation .
&mut self
entity
Entity
value
T
&mut self
entity
Entity
value
T