Module query

Source
Expand description

Query the world

Structs§

ArchetypeSearcher
Declares search terms for a queries archetypes
BatchedIter
An iterator which yields disjoint continuous slices for each matched archetype and filter predicate.
Children
Iterates the immediate children of a node
Dfs
Traverse from all roots in depth first order
DfsBorrow
Borrowed state for Dfs strategy
DfsIter
Iterate a hierarchy in depth-first order
EntityBorrow
Entity(Query)Borrow
GraphBorrow
The borrowed state for a GraphQuery
GraphQuery
Allows random traversal of a graph formed by a relation
Node
A cursor to a node/entity in the graph
Planar
The default linear iteration strategy
Query
Represents a query and state for a given world. The archetypes to visit is cached in the query which means it is more performant to reuse the query than creating a new one.
QueryBorrow
A lazily prepared query which borrows and hands out chunk iterators for each archetype matched.
QueryData
Combined reference to a query and a world.
QueryIter
The query iterator
QueryOne
Execute a query on a single entity
Topo
Visit entities in topological order following relation.
TopoBorrow
Borrowed state for Topo strategy
TopoIter
Iterates a hierarchy in topological order.

Type Aliases§

EntityQuery
Similar to Query, except optimized to only fetch a single entity.