Function constellation::iter_entities_r0w1 [] [src]

pub fn iter_entities_r0w1<'a, W0, F, R>(W0: &mut W0, f: F) -> R where W0: EntityResource, F: FnOnce(BitIter<&BitSet>, &mut W0::Api) -> R + 'a

Constructs an iterator which yields the index of each entity with data stored in all given entity resources.

This function borrows each resource, preventing mutation of the resource for the duration of its' scope. However, the user is provided with restricted APIs for each resource which may allow mutable access to entity data stored within the resource, without allowing any operations which would invalidate the entity iterator.