/// Collect the IDs of all entities containing a certain set of component types into a vector.
///
/// After calling this method, the vector `dest` will contain *only* those entities who have
/// at least each type of component specified in the filter.
Collect the IDs of all entities containing a certain set of component types into a vector.
After calling this method, the vector `dest` will contain *only* those entities who have
at least each type of component specified in the filter.
Collect the IDs of all entities containing a certain set of component types into a vector . After calling this method the vector ` dest ` will contain * only * those entities who have at least each type of component specified in the filter .
pub fn collect_with<'a>(&'a self, components: &'a ComponentFilter, dest: &mut Vec<EntityId>) {
        let ids = self.data.keys().cloned();
        dest.clear();
        dest.extend(ids.filter(|e| {
            self.has_all(*e, components)
                .expect("Ecs.collect_with: internal id filter error")
        }))
    }
pub fn collect_with < ' a > ( & ' a self , components : & ' a ComponentFilter , dest : & mut Vec < EntityId > ) { let ids = self . data . keys ( ) . cloned ( ) ; dest . clear ( ) ; dest . extend ( ids . filter ( | e | { self . has_all ( * e , components ) . expect ( " " ) } ) ) }
Collect the IDs of all entities containing a certain set of component types into a vector.
Collect the IDs of all entities containing a certain set of component types into a vector .
&'a self
components
&'a ComponentFilter
dest
&mut Vec<EntityId>