pub fn clear(&mut self) {
        use crate::query::IntoQuery;
        let mut all = Entity::query();
        let entities = all.iter(self).copied().collect::<Vec<_>>();
        for entity in entities {
            self.remove(entity);
        }
    }
/// Removes all entities from the world.
Removes all entities from the world.
Removes all entities from the world .
pub fn clear(&mut self) {
        use crate::query::IntoQuery;
        let mut all = Entity::query();
        let entities = all.iter(self).copied().collect::<Vec<_>>();
        for entity in entities {
            self.remove(entity);
        }
    }
pub fn clear ( & mut self ) { use crate :: query :: IntoQuery ; let mut all = Entity :: query ( ) ; let entities = all . iter ( self ) . copied ( ) . collect :: < Vec < _ > > ( ) ; for entity in entities { self . remove ( entity ) ; } }
Removes all entities from the world.
Removes all entities from the world .
&mut self
&mut self