Function component

Source
pub fn component<T>() -> EntityFilterTuple<ComponentFilter<T>, Passthrough>
where T: Component,
Expand description

Constructs a filter which requires that the entities have the given component.