Struct hecs::QueryOne [−][src]
pub struct QueryOne<'a, Q: Query> { /* fields omitted */ }
Expand description
A borrow of a World
sufficient to execute the query Q
on a single entity
Implementations
Get the query result, or None
if the entity does not satisfy the query
Must be called at most once.
Panics if called more than once or if it would construct a borrow that clashes with another pre-existing borrow.
Transform the query into one that requires a certain component without borrowing it
See QueryBorrow::with
for details.