Struct hecs::PreparedView
source · [−]pub struct PreparedView<'q, Q: Query> { /* private fields */ }
Expand description
Provides random access to the results of a prepared query
Implementations
Retrieve the query results corresponding to entity
Will yield None
if the entity does not exist or does not match the query.
Does not require exclusive access to the map, but is defined only for queries yielding only shared references.
Retrieve the query results corresponding to entity
Will yield None
if the entity does not exist or does not match the query.
Like get_mut
, but allows simultaneous access to multiple entities
Safety
Must not be invoked while any unique borrow of the fetched components of entity
is live.