Struct recs::ComponentFilter [] [src]

pub struct ComponentFilter { /* fields omitted */ }

List of component types.

The Ecs methods has_all and collect_with each take a ComponentFilter instance. The recommended way to actually create a ComponentFilter is with the component_filter! macro.

Methods

impl ComponentFilter
[src]

Create a new component filter.

Add component type C to the filter.

Remove component type C from the filter.

Return true if the filter already contains component type C; otherwise false.

Create a component filter from a vector/slice of TypeId instances. (Not recommended; used by the component_filter! macro.)

Return an iterator over all the contained component types.

Trait Implementations

impl Default for ComponentFilter
[src]

Returns the "default value" for a type. Read more

impl PartialEq for ComponentFilter
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for ComponentFilter
[src]

impl Debug for ComponentFilter
[src]

Formats the value using the given formatter.

impl Clone for ComponentFilter
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more