pub fn build(self) -> u32 {
        let layout = ArchetypeLayout::new(self.type_ids);
        let next_id = self.layout.archetype_layouts.len() as u32;

        match self.layout.archetype_layouts.entry(layout) {
            hash_map::Entry::Vacant(e) => {
                e.insert(next_id);
                next_id
            }
            hash_map::Entry::Occupied(e) => *e.get(),
        }
    }
/// Returns id of the archetype. Equivalent archetypes have identical ids.
Returns id of the archetype. Equivalent archetypes have identical ids.
Returns id of the archetype . Equivalent archetypes have identical ids .
pub fn build(self) -> u32 {
        let layout = ArchetypeLayout::new(self.type_ids);
        let next_id = self.layout.archetype_layouts.len() as u32;
        match self.layout.archetype_layouts.entry(layout) {
            hash_map::Entry::Vacant(e) => {
                e.insert(next_id);
                next_id
            }
            hash_map::Entry::Occupied(e) => *e.get(),
        }
    }
pub fn build ( self ) -> u32 { let layout = ArchetypeLayout :: new ( self . type_ids ) ; let next_id = self . layout . archetype_layouts . len ( ) as u32 ; match self . layout . archetype_layouts . entry ( layout ) { hash_map :: Entry :: Vacant ( e ) => { e . insert ( next_id ) ; next_id } hash_map :: Entry :: Occupied ( e ) => * e . get ( ) , } }
Returns id of the archetype.
Returns id of the archetype .
self
self