Trait bevy::ecs::query::FetchState
[−]pub trait FetchState: Send + Sync {
fn init(world: &mut World) -> Self;
fn matches_component_set(
&self,
set_contains_id: &impl Fn(ComponentId) -> bool
) -> bool;
}
Expand description
State used to construct a Fetch. This will be cached inside QueryState
,
so it is best to move as much data / computation here as possible to reduce the cost of
constructing Fetch.