AppendComponents

Trait AppendComponents 

Source
pub trait AppendComponents
where Self: IteratorSoa,
{ // Required methods fn is_match<S: Storage>(storage: &S) -> bool; fn append_components<I, S>(items: I, storage: &mut S) -> usize where S: Storage, I: IntoIterator<Item = Self>; }

Required Methods§

Source

fn is_match<S: Storage>(storage: &S) -> bool

Source

fn append_components<I, S>(items: I, storage: &mut S) -> usize
where S: Storage, I: IntoIterator<Item = Self>,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<A> AppendComponents for (A,)
where A: Component,

Source§

fn is_match<S: Storage>(storage: &S) -> bool

Source§

fn append_components<Iter, S>(items: Iter, storage: &mut S) -> usize
where S: Storage, Iter: IntoIterator<Item = Self>,

Source§

impl<A, B> AppendComponents for (A, B)
where A: Component, B: Component,

Source§

fn is_match<S: Storage>(storage: &S) -> bool

Source§

fn append_components<Iter, S>(items: Iter, storage: &mut S) -> usize
where S: Storage, Iter: IntoIterator<Item = Self>,

Source§

impl<A, B, C> AppendComponents for (A, B, C)
where A: Component, B: Component, C: Component,

Source§

fn is_match<S: Storage>(storage: &S) -> bool

Source§

fn append_components<Iter, S>(items: Iter, storage: &mut S) -> usize
where S: Storage, Iter: IntoIterator<Item = Self>,

Source§

impl<A, B, C, D> AppendComponents for (A, B, C, D)
where A: Component, B: Component, C: Component, D: Component,

Source§

fn is_match<S: Storage>(storage: &S) -> bool

Source§

fn append_components<Iter, S>(items: Iter, storage: &mut S) -> usize
where S: Storage, Iter: IntoIterator<Item = Self>,

Source§

impl<A, B, C, D, E> AppendComponents for (A, B, C, D, E)
where A: Component, B: Component, C: Component, D: Component, E: Component,

Source§

fn is_match<S: Storage>(storage: &S) -> bool

Source§

fn append_components<Iter, S>(items: Iter, storage: &mut S) -> usize
where S: Storage, Iter: IntoIterator<Item = Self>,

Source§

impl<A, B, C, D, E, F> AppendComponents for (A, B, C, D, E, F)

Source§

fn is_match<S: Storage>(storage: &S) -> bool

Source§

fn append_components<Iter, S>(items: Iter, storage: &mut S) -> usize
where S: Storage, Iter: IntoIterator<Item = Self>,

Source§

impl<A, B, C, D, E, F, G> AppendComponents for (A, B, C, D, E, F, G)

Source§

fn is_match<S: Storage>(storage: &S) -> bool

Source§

fn append_components<Iter, S>(items: Iter, storage: &mut S) -> usize
where S: Storage, Iter: IntoIterator<Item = Self>,

Source§

impl<A, B, C, D, E, F, G, H> AppendComponents for (A, B, C, D, E, F, G, H)

Source§

fn is_match<S: Storage>(storage: &S) -> bool

Source§

fn append_components<Iter, S>(items: Iter, storage: &mut S) -> usize
where S: Storage, Iter: IntoIterator<Item = Self>,

Source§

impl<A, B, C, D, E, F, G, H, I> AppendComponents for (A, B, C, D, E, F, G, H, I)

Source§

fn is_match<S: Storage>(storage: &S) -> bool

Source§

fn append_components<Iter, S>(items: Iter, storage: &mut S) -> usize
where S: Storage, Iter: IntoIterator<Item = Self>,

Source§

impl<A, B, C, D, E, F, G, H, I, J> AppendComponents for (A, B, C, D, E, F, G, H, I, J)

Source§

fn is_match<S: Storage>(storage: &S) -> bool

Source§

fn append_components<Iter, S>(items: Iter, storage: &mut S) -> usize
where S: Storage, Iter: IntoIterator<Item = Self>,

Source§

impl<A, B, C, D, E, F, G, H, I, J, K> AppendComponents for (A, B, C, D, E, F, G, H, I, J, K)

Source§

fn is_match<S: Storage>(storage: &S) -> bool

Source§

fn append_components<Iter, S>(items: Iter, storage: &mut S) -> usize
where S: Storage, Iter: IntoIterator<Item = Self>,

Implementors§