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.

Transform the query into one that skips entities having a certain component

See QueryBorrow::without for details.

Trait Implementations

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.