Expand description
Contains APIs for retrieving component data from the world.
Structs§
- Access
- Tracks read and write access to specific elements in a collection.
- Added
- A filter on a component that only retains results the first time after they have been added.
- AnyOf
- The
AnyOf
query parameter fetches entities with any of the component types included in T. - Changed
- A filter on a component that only retains results the first time after they have been added or mutably dereferenced.
- Filtered
Access - An
Access
that has been filtered to include and exclude certain combinations of elements. - Filtered
Access Set - A collection of
FilteredAccess
instances. - Has
- Returns a bool that describes if an entity has the component
T
. - Or
- A filter that tests if any of the given filters apply.
- Query
Builder - Builder struct to create
QueryState
instances at runtime. - Query
Combination Iter - An iterator over
K
-sized combinations of query items without repetition. - Query
Iter - An
Iterator
over query results of aQuery
. - Query
Many Iter - An
Iterator
over the query items generated from an iterator ofEntity
s. - Query
ParIter - A parallel iterator over query results of a
Query
. - Query
Sorted Iter - An
Iterator
over sorted query results of aQuery
. - Query
State - Provides scoped access to a
World
state according to a givenQueryData
andQueryFilter
. - Read
Fetch - The
WorldQuery::Fetch
type for& T
. - With
- Filter that selects entities with a component
T
. - Without
- Filter that selects entities without a component
T
. - Write
Fetch - The
WorldQuery::Fetch
type for&mut T
.
Enums§
- Access
Conflicts - Records how two accesses conflict with each other
- Query
Entity Error - An error that occurs when retrieving a specific
Entity
’s query result fromQuery
orQueryState
. - Query
Single Error - An error that occurs when evaluating a
Query
orQueryState
as a single expected result viaget_single
orget_single_mut
.
Traits§
- Archetype
Filter - A marker trait to indicate that the filter works at an archetype level.
- Query
Data - Types that can be fetched from a
World
using aQuery
. - Query
Filter - Types that filter the results of a
Query
. - Read
Only Query Data - A
QueryData
that is read only. - World
Query - Types that can be used as parameters in a
Query
. Types that implement this should also implement eitherQueryData
orQueryFilter
Type Aliases§
- Query
Item - The item type returned when a
WorldQuery
is iterated over - ROQuery
Item - The read-only variant of the item type returned when a
QueryData
is iterated over immutably
Derive Macros§
- Query
Data - Implement
QueryData
to use a struct as a data parameter in a query - Query
Filter - Implement
QueryFilter
to use a struct as a filter parameter in a query