Struct oxygengine_core::ecs::PreparedQuery [−][src]
pub struct PreparedQuery<Q> where
Q: Query, { /* fields omitted */ }
Expand description
A prepared query can be stored independently of the World
to amortize query set-up costs.
Implementations
Create a prepared query which is not yet attached to any world
Query world
, using dynamic borrow checking
This will panic if it would violate an existing unique reference or construct an invalid unique reference.
Query a uniquely borrowed world
Avoids the cost of the dynamic borrow checking performed by query
.
Trait Implementations
Returns the “default value” for a type. Read more