pub fn create(&mut self) -> Entity {
        self.next_id += 1;
        let entity = Entity { id: self.next_id };
        let ie = IndexedEntity {
            index: self.indices.new_id(),
            entity,
            _marker: PhantomData,
        };
        self.indexed_entities.insert(ie.index, ie.__clone());
        self.entities.insert(entity, ie);
        entity
    }
/// Creates a new `Entity`, assigning it the first available index.
Creates a new `Entity`, assigning it the first available index.
Creates a new ` Entity ` assigning it the first available index .
pub fn create(&mut self) -> Entity {
        self.next_id += 1;
        let entity = Entity { id: self.next_id };
        let ie = IndexedEntity {
            index: self.indices.new_id(),
            entity,
            _marker: PhantomData,
        };
        self.indexed_entities.insert(ie.index, ie.__clone());
        self.entities.insert(entity, ie);
        entity
    }
pub fn create ( & mut self ) -> Entity { self . next_id += 1 ; let entity = Entity { id : self . next_id } ; let ie = IndexedEntity { index : self . indices . new_id ( ) , entity , _marker : PhantomData , } ; self . indexed_entities . insert ( ie . index , ie . __clone ( ) ) ; self . entities . insert ( entity , ie ) ; entity }
Creates a new `Entity`, assigning it the first available index.
Creates a new ` Entity ` assigning it the first available index .
&mut self
&mut self