fn update_archetypes(&mut self, systems: &mut [ParallelSystemContainer], world: &World) {
        let archetypes = world.archetypes();
        let new_generation = archetypes.generation();
        let old_generation = std::mem::replace(&mut self.archetype_generation, new_generation);
        let archetype_index_range = old_generation.value()..new_generation.value();

        for archetype in archetypes.archetypes[archetype_index_range].iter() {
            for container in systems.iter_mut() {
                let system = container.system_mut();
                system.new_archetype(archetype);
            }
        }
    }
/// Calls system.new_archetype() for each archetype added since the last call to
/// [update_archetypes] and updates cached archetype_component_access.
Calls system.new_archetype() for each archetype added since the last call to
[update_archetypes] and updates cached archetype_component_access.
Calls system . new_archetype () for each archetype added since the last call to [ update_archetypes ] and updates cached archetype_component_access .
fn update_archetypes(&mut self, systems: &mut [ParallelSystemContainer], world: &World) {
        let archetypes = world.archetypes();
        let new_generation = archetypes.generation();
        let old_generation = std::mem::replace(&mut self.archetype_generation, new_generation);
        let archetype_index_range = old_generation.value()..new_generation.value();
        for archetype in archetypes.archetypes[archetype_index_range].iter() {
            for container in systems.iter_mut() {
                let system = container.system_mut();
                system.new_archetype(archetype);
            }
        }
    }
fn update_archetypes ( & mut self , systems : & mut [ ParallelSystemContainer ] , world : & World ) { let archetypes = world . archetypes ( ) ; let new_generation = archetypes . generation ( ) ; let old_generation = std :: mem :: replace ( & mut self . archetype_generation , new_generation ) ; let archetype_index_range = old_generation . value ( ) .. new_generation . value ( ) ; for archetype in archetypes . archetypes [ archetype_index_range ] . iter ( ) { for container in systems . iter_mut ( ) { let system = container . system_mut ( ) ; system . new_archetype ( archetype ) ; } } }
Calls system.new_archetype() for each archetype added since the last call to
[update_archetypes] and updates cached archetype_component_access.
Calls system . new_archetype () for each archetype added since the last call to [ update_archetypes ] and updates cached archetype_component_access .
&mut self
systems
&mut [ParallelSystemContainer]
world
&World
&mut self
systems
&mut [ParallelSystemContainer]
world
&World