pub struct Maybe<T>(_);
Expand description

Query type used to denote an optional column.

Use Maybe in queries to return bundles of components that may or may not contain a component of the wrapped type T.

Trait Implementations

Data that is read or write locked by performing this query.
Data that can be used to append to columns. Typically vectors of component entries or bundles of vectors of component entries. Read more
The iterator that is produced by performing a query on one archetype.
The parallel iterator that is produced by performing a query on one archetype. Read more
The iterator item.
Find and acquire a “lock” on the columns for reading or writing.
Extend entries in the locked columns. Read more
Create an iterator over the rows of the given columns.
Create an iterator over one row with the given index.
Create an iterator over the rows of the given columns.
Data that is read or write locked by performing this query.
Data that can be used to append to columns. Typically vectors of component entries or bundles of vectors of component entries. Read more
The iterator that is produced by performing a query on one archetype.
The parallel iterator that is produced by performing a query on one archetype. Read more
The iterator item.
Find and acquire a “lock” on the columns for reading or writing.
Extend entries in the locked columns. Read more
Create an iterator over the rows of the given columns.
Create an iterator over one row with the given index.
Create an iterator over the rows of the given columns.

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 alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
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.