Struct gfx_hal::query::Query

source ·
pub struct Query<'a, B: Backend> {
    pub pool: &'a B::QueryPool,
    pub id: Id,
}
Expand description

A Query object has a particular identifier and saves its results to a given QueryPool. It is passed as a parameter to the command buffer’s query methods.

Fields

pool: &'a B::QueryPool
id: Id

Trait Implementations

Formats the value using the given formatter. 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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.