Struct hecs::QueryOne [−][src]
pub struct QueryOne<'a, Q: Query> { /* fields omitted */ }
A borrow of a World
sufficient to execute the query Q
on a single entity
Implementations
impl<'a, Q: Query> QueryOne<'a, Q>
[src]
impl<'a, Q: Query> QueryOne<'a, Q>
[src]pub fn get(&mut self) -> Option<QueryItem<'_, Q>>
[src]
pub fn get(&mut self) -> Option<QueryItem<'_, Q>>
[src]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.
Trait Implementations
impl<Q: Query> Send for QueryOne<'_, Q>
[src]
impl<Q: Query> Sync for QueryOne<'_, Q>
[src]
Auto Trait Implementations
impl<'a, Q> !RefUnwindSafe for QueryOne<'a, Q>
impl<'a, Q> Unpin for QueryOne<'a, Q> where
Q: Unpin,
Q: Unpin,