Struct ComponentTupleSet

Source
pub struct ComponentTupleSet<T, I>
where I: Iterator<Item = T>,
{ /* private fields */ }
Expand description

A ComponentSource which can insert tuples of components representing each entity into a world.

Trait Implementations§

Source§

impl<UWU> ComponentLayout for ComponentTupleSet<(), UWU>
where UWU: ExactSizeIterator + Iterator<Item = ()>,

Source§

type Filter = ComponentTupleFilter<()>

A filter type which filters archetypes to an exact match with this layout.
Source§

fn get_filter(&mut self) -> &mut Self::Filter

Gets the archetype filter for this layout.
Source§

fn tailor_archetype(&self, archetype: &mut ArchetypeDescription)

Modifies an archetype description to include the components described by this layout.
Source§

impl<UWU, A> ComponentLayout for ComponentTupleSet<(A,), UWU>
where UWU: ExactSizeIterator + Iterator<Item = (A,)>, A: Component,

Source§

type Filter = ComponentTupleFilter<(A,)>

A filter type which filters archetypes to an exact match with this layout.
Source§

fn get_filter(&mut self) -> &mut Self::Filter

Gets the archetype filter for this layout.
Source§

fn tailor_archetype(&self, archetype: &mut ArchetypeDescription)

Modifies an archetype description to include the components described by this layout.
Source§

impl<UWU, A, B> ComponentLayout for ComponentTupleSet<(A, B), UWU>
where UWU: ExactSizeIterator + Iterator<Item = (A, B)>, A: Component, B: Component,

Source§

type Filter = ComponentTupleFilter<(A, B)>

A filter type which filters archetypes to an exact match with this layout.
Source§

fn get_filter(&mut self) -> &mut Self::Filter

Gets the archetype filter for this layout.
Source§

fn tailor_archetype(&self, archetype: &mut ArchetypeDescription)

Modifies an archetype description to include the components described by this layout.
Source§

impl<UWU, A, B, C> ComponentLayout for ComponentTupleSet<(A, B, C), UWU>

Source§

type Filter = ComponentTupleFilter<(A, B, C)>

A filter type which filters archetypes to an exact match with this layout.
Source§

fn get_filter(&mut self) -> &mut Self::Filter

Gets the archetype filter for this layout.
Source§

fn tailor_archetype(&self, archetype: &mut ArchetypeDescription)

Modifies an archetype description to include the components described by this layout.
Source§

impl<UWU, A, B, C, D> ComponentLayout for ComponentTupleSet<(A, B, C, D), UWU>

Source§

type Filter = ComponentTupleFilter<(A, B, C, D)>

A filter type which filters archetypes to an exact match with this layout.
Source§

fn get_filter(&mut self) -> &mut Self::Filter

Gets the archetype filter for this layout.
Source§

fn tailor_archetype(&self, archetype: &mut ArchetypeDescription)

Modifies an archetype description to include the components described by this layout.
Source§

impl<UWU, A, B, C, D, E> ComponentLayout for ComponentTupleSet<(A, B, C, D, E), UWU>

Source§

type Filter = ComponentTupleFilter<(A, B, C, D, E)>

A filter type which filters archetypes to an exact match with this layout.
Source§

fn get_filter(&mut self) -> &mut Self::Filter

Gets the archetype filter for this layout.
Source§

fn tailor_archetype(&self, archetype: &mut ArchetypeDescription)

Modifies an archetype description to include the components described by this layout.
Source§

impl<UWU, A, B, C, D, E, F> ComponentLayout for ComponentTupleSet<(A, B, C, D, E, F), UWU>

Source§

type Filter = ComponentTupleFilter<(A, B, C, D, E, F)>

A filter type which filters archetypes to an exact match with this layout.
Source§

fn get_filter(&mut self) -> &mut Self::Filter

Gets the archetype filter for this layout.
Source§

fn tailor_archetype(&self, archetype: &mut ArchetypeDescription)

Modifies an archetype description to include the components described by this layout.
Source§

impl<UWU, A, B, C, D, E, F, G> ComponentLayout for ComponentTupleSet<(A, B, C, D, E, F, G), UWU>

Source§

type Filter = ComponentTupleFilter<(A, B, C, D, E, F, G)>

A filter type which filters archetypes to an exact match with this layout.
Source§

fn get_filter(&mut self) -> &mut Self::Filter

Gets the archetype filter for this layout.
Source§

fn tailor_archetype(&self, archetype: &mut ArchetypeDescription)

Modifies an archetype description to include the components described by this layout.
Source§

impl<UWU, A, B, C, D, E, F, G, H> ComponentLayout for ComponentTupleSet<(A, B, C, D, E, F, G, H), UWU>

Source§

type Filter = ComponentTupleFilter<(A, B, C, D, E, F, G, H)>

A filter type which filters archetypes to an exact match with this layout.
Source§

fn get_filter(&mut self) -> &mut Self::Filter

Gets the archetype filter for this layout.
Source§

fn tailor_archetype(&self, archetype: &mut ArchetypeDescription)

Modifies an archetype description to include the components described by this layout.
Source§

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

Source§

type Filter = ComponentTupleFilter<(A, B, C, D, E, F, G, H, I)>

A filter type which filters archetypes to an exact match with this layout.
Source§

fn get_filter(&mut self) -> &mut Self::Filter

Gets the archetype filter for this layout.
Source§

fn tailor_archetype(&self, archetype: &mut ArchetypeDescription)

Modifies an archetype description to include the components described by this layout.
Source§

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

Source§

type Filter = ComponentTupleFilter<(A, B, C, D, E, F, G, H, I, J)>

A filter type which filters archetypes to an exact match with this layout.
Source§

fn get_filter(&mut self) -> &mut Self::Filter

Gets the archetype filter for this layout.
Source§

fn tailor_archetype(&self, archetype: &mut ArchetypeDescription)

Modifies an archetype description to include the components described by this layout.
Source§

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

Source§

type Filter = ComponentTupleFilter<(A, B, C, D, E, F, G, H, I, J, K)>

A filter type which filters archetypes to an exact match with this layout.
Source§

fn get_filter(&mut self) -> &mut Self::Filter

Gets the archetype filter for this layout.
Source§

fn tailor_archetype(&self, archetype: &mut ArchetypeDescription)

Modifies an archetype description to include the components described by this layout.
Source§

impl<UWU, A, B, C, D, E, F, G, H, I, J, K, L> ComponentLayout for ComponentTupleSet<(A, B, C, D, E, F, G, H, I, J, K, L), UWU>

Source§

type Filter = ComponentTupleFilter<(A, B, C, D, E, F, G, H, I, J, K, L)>

A filter type which filters archetypes to an exact match with this layout.
Source§

fn get_filter(&mut self) -> &mut Self::Filter

Gets the archetype filter for this layout.
Source§

fn tailor_archetype(&self, archetype: &mut ArchetypeDescription)

Modifies an archetype description to include the components described by this layout.
Source§

impl<UWU, A, B, C, D, E, F, G, H, I, J, K, L, M> ComponentLayout for ComponentTupleSet<(A, B, C, D, E, F, G, H, I, J, K, L, M), UWU>

Source§

type Filter = ComponentTupleFilter<(A, B, C, D, E, F, G, H, I, J, K, L, M)>

A filter type which filters archetypes to an exact match with this layout.
Source§

fn get_filter(&mut self) -> &mut Self::Filter

Gets the archetype filter for this layout.
Source§

fn tailor_archetype(&self, archetype: &mut ArchetypeDescription)

Modifies an archetype description to include the components described by this layout.
Source§

impl<UWU, A, B, C, D, E, F, G, H, I, J, K, L, M, N> ComponentLayout for ComponentTupleSet<(A, B, C, D, E, F, G, H, I, J, K, L, M, N), UWU>

Source§

type Filter = ComponentTupleFilter<(A, B, C, D, E, F, G, H, I, J, K, L, M, N)>

A filter type which filters archetypes to an exact match with this layout.
Source§

fn get_filter(&mut self) -> &mut Self::Filter

Gets the archetype filter for this layout.
Source§

fn tailor_archetype(&self, archetype: &mut ArchetypeDescription)

Modifies an archetype description to include the components described by this layout.
Source§

impl<UWU, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O> ComponentLayout for ComponentTupleSet<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O), UWU>

Source§

type Filter = ComponentTupleFilter<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O)>

A filter type which filters archetypes to an exact match with this layout.
Source§

fn get_filter(&mut self) -> &mut Self::Filter

Gets the archetype filter for this layout.
Source§

fn tailor_archetype(&self, archetype: &mut ArchetypeDescription)

Modifies an archetype description to include the components described by this layout.
Source§

impl<UWU, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P> ComponentLayout for ComponentTupleSet<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P), UWU>

Source§

type Filter = ComponentTupleFilter<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P)>

A filter type which filters archetypes to an exact match with this layout.
Source§

fn get_filter(&mut self) -> &mut Self::Filter

Gets the archetype filter for this layout.
Source§

fn tailor_archetype(&self, archetype: &mut ArchetypeDescription)

Modifies an archetype description to include the components described by this layout.
Source§

impl<UWU, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q> ComponentLayout for ComponentTupleSet<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q), UWU>

Source§

type Filter = ComponentTupleFilter<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q)>

A filter type which filters archetypes to an exact match with this layout.
Source§

fn get_filter(&mut self) -> &mut Self::Filter

Gets the archetype filter for this layout.
Source§

fn tailor_archetype(&self, archetype: &mut ArchetypeDescription)

Modifies an archetype description to include the components described by this layout.
Source§

impl<UWU, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R> ComponentLayout for ComponentTupleSet<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R), UWU>

Source§

type Filter = ComponentTupleFilter<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R)>

A filter type which filters archetypes to an exact match with this layout.
Source§

fn get_filter(&mut self) -> &mut Self::Filter

Gets the archetype filter for this layout.
Source§

fn tailor_archetype(&self, archetype: &mut ArchetypeDescription)

Modifies an archetype description to include the components described by this layout.
Source§

impl<UWU, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S> ComponentLayout for ComponentTupleSet<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S), UWU>

Source§

type Filter = ComponentTupleFilter<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S)>

A filter type which filters archetypes to an exact match with this layout.
Source§

fn get_filter(&mut self) -> &mut Self::Filter

Gets the archetype filter for this layout.
Source§

fn tailor_archetype(&self, archetype: &mut ArchetypeDescription)

Modifies an archetype description to include the components described by this layout.
Source§

impl<UWU, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T> ComponentLayout for ComponentTupleSet<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T), UWU>

Source§

type Filter = ComponentTupleFilter<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T)>

A filter type which filters archetypes to an exact match with this layout.
Source§

fn get_filter(&mut self) -> &mut Self::Filter

Gets the archetype filter for this layout.
Source§

fn tailor_archetype(&self, archetype: &mut ArchetypeDescription)

Modifies an archetype description to include the components described by this layout.
Source§

impl<UWU, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U> ComponentLayout for ComponentTupleSet<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U), UWU>

Source§

type Filter = ComponentTupleFilter<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U)>

A filter type which filters archetypes to an exact match with this layout.
Source§

fn get_filter(&mut self) -> &mut Self::Filter

Gets the archetype filter for this layout.
Source§

fn tailor_archetype(&self, archetype: &mut ArchetypeDescription)

Modifies an archetype description to include the components described by this layout.
Source§

impl<UWU, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V> ComponentLayout for ComponentTupleSet<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V), UWU>

Source§

type Filter = ComponentTupleFilter<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V)>

A filter type which filters archetypes to an exact match with this layout.
Source§

fn get_filter(&mut self) -> &mut Self::Filter

Gets the archetype filter for this layout.
Source§

fn tailor_archetype(&self, archetype: &mut ArchetypeDescription)

Modifies an archetype description to include the components described by this layout.
Source§

impl<UWU, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W> ComponentLayout for ComponentTupleSet<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W), UWU>

Source§

type Filter = ComponentTupleFilter<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W)>

A filter type which filters archetypes to an exact match with this layout.
Source§

fn get_filter(&mut self) -> &mut Self::Filter

Gets the archetype filter for this layout.
Source§

fn tailor_archetype(&self, archetype: &mut ArchetypeDescription)

Modifies an archetype description to include the components described by this layout.
Source§

impl<UWU, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X> ComponentLayout for ComponentTupleSet<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X), UWU>

Source§

type Filter = ComponentTupleFilter<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X)>

A filter type which filters archetypes to an exact match with this layout.
Source§

fn get_filter(&mut self) -> &mut Self::Filter

Gets the archetype filter for this layout.
Source§

fn tailor_archetype(&self, archetype: &mut ArchetypeDescription)

Modifies an archetype description to include the components described by this layout.
Source§

impl<UWU, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y> ComponentLayout for ComponentTupleSet<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y), UWU>

Source§

type Filter = ComponentTupleFilter<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y)>

A filter type which filters archetypes to an exact match with this layout.
Source§

fn get_filter(&mut self) -> &mut Self::Filter

Gets the archetype filter for this layout.
Source§

fn tailor_archetype(&self, archetype: &mut ArchetypeDescription)

Modifies an archetype description to include the components described by this layout.
Source§

impl<UWU, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z> ComponentLayout for ComponentTupleSet<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z), UWU>

Source§

type Filter = ComponentTupleFilter<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z)>

A filter type which filters archetypes to an exact match with this layout.
Source§

fn get_filter(&mut self) -> &mut Self::Filter

Gets the archetype filter for this layout.
Source§

fn tailor_archetype(&self, archetype: &mut ArchetypeDescription)

Modifies an archetype description to include the components described by this layout.
Source§

impl<UWU> ComponentSource for ComponentTupleSet<(), UWU>
where UWU: ExactSizeIterator + Iterator<Item = ()>,

Source§

fn is_empty(&mut self) -> bool

Determines if this component source has any more entity data to write.
Source§

fn len(&self) -> usize

Retrieves the nubmer of entities in this component source.
Source§

fn write<EntityIter: Iterator<Item = Entity>>( &mut self, allocator: EntityIter, chunk: &mut ComponentStorage, ) -> usize

Writes as many components as possible into a chunk.
Source§

impl<UWU, A> ComponentSource for ComponentTupleSet<(A,), UWU>
where UWU: ExactSizeIterator + Iterator<Item = (A,)>, A: Component,

Source§

fn is_empty(&mut self) -> bool

Determines if this component source has any more entity data to write.
Source§

fn len(&self) -> usize

Retrieves the nubmer of entities in this component source.
Source§

fn write<EntityIter: Iterator<Item = Entity>>( &mut self, allocator: EntityIter, chunk: &mut ComponentStorage, ) -> usize

Writes as many components as possible into a chunk.
Source§

impl<UWU, A, B> ComponentSource for ComponentTupleSet<(A, B), UWU>
where UWU: ExactSizeIterator + Iterator<Item = (A, B)>, A: Component, B: Component,

Source§

fn is_empty(&mut self) -> bool

Determines if this component source has any more entity data to write.
Source§

fn len(&self) -> usize

Retrieves the nubmer of entities in this component source.
Source§

fn write<EntityIter: Iterator<Item = Entity>>( &mut self, allocator: EntityIter, chunk: &mut ComponentStorage, ) -> usize

Writes as many components as possible into a chunk.
Source§

impl<UWU, A, B, C> ComponentSource for ComponentTupleSet<(A, B, C), UWU>

Source§

fn is_empty(&mut self) -> bool

Determines if this component source has any more entity data to write.
Source§

fn len(&self) -> usize

Retrieves the nubmer of entities in this component source.
Source§

fn write<EntityIter: Iterator<Item = Entity>>( &mut self, allocator: EntityIter, chunk: &mut ComponentStorage, ) -> usize

Writes as many components as possible into a chunk.
Source§

impl<UWU, A, B, C, D> ComponentSource for ComponentTupleSet<(A, B, C, D), UWU>

Source§

fn is_empty(&mut self) -> bool

Determines if this component source has any more entity data to write.
Source§

fn len(&self) -> usize

Retrieves the nubmer of entities in this component source.
Source§

fn write<EntityIter: Iterator<Item = Entity>>( &mut self, allocator: EntityIter, chunk: &mut ComponentStorage, ) -> usize

Writes as many components as possible into a chunk.
Source§

impl<UWU, A, B, C, D, E> ComponentSource for ComponentTupleSet<(A, B, C, D, E), UWU>

Source§

fn is_empty(&mut self) -> bool

Determines if this component source has any more entity data to write.
Source§

fn len(&self) -> usize

Retrieves the nubmer of entities in this component source.
Source§

fn write<EntityIter: Iterator<Item = Entity>>( &mut self, allocator: EntityIter, chunk: &mut ComponentStorage, ) -> usize

Writes as many components as possible into a chunk.
Source§

impl<UWU, A, B, C, D, E, F> ComponentSource for ComponentTupleSet<(A, B, C, D, E, F), UWU>

Source§

fn is_empty(&mut self) -> bool

Determines if this component source has any more entity data to write.
Source§

fn len(&self) -> usize

Retrieves the nubmer of entities in this component source.
Source§

fn write<EntityIter: Iterator<Item = Entity>>( &mut self, allocator: EntityIter, chunk: &mut ComponentStorage, ) -> usize

Writes as many components as possible into a chunk.
Source§

impl<UWU, A, B, C, D, E, F, G> ComponentSource for ComponentTupleSet<(A, B, C, D, E, F, G), UWU>

Source§

fn is_empty(&mut self) -> bool

Determines if this component source has any more entity data to write.
Source§

fn len(&self) -> usize

Retrieves the nubmer of entities in this component source.
Source§

fn write<EntityIter: Iterator<Item = Entity>>( &mut self, allocator: EntityIter, chunk: &mut ComponentStorage, ) -> usize

Writes as many components as possible into a chunk.
Source§

impl<UWU, A, B, C, D, E, F, G, H> ComponentSource for ComponentTupleSet<(A, B, C, D, E, F, G, H), UWU>

Source§

fn is_empty(&mut self) -> bool

Determines if this component source has any more entity data to write.
Source§

fn len(&self) -> usize

Retrieves the nubmer of entities in this component source.
Source§

fn write<EntityIter: Iterator<Item = Entity>>( &mut self, allocator: EntityIter, chunk: &mut ComponentStorage, ) -> usize

Writes as many components as possible into a chunk.
Source§

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

Source§

fn is_empty(&mut self) -> bool

Determines if this component source has any more entity data to write.
Source§

fn len(&self) -> usize

Retrieves the nubmer of entities in this component source.
Source§

fn write<EntityIter: Iterator<Item = Entity>>( &mut self, allocator: EntityIter, chunk: &mut ComponentStorage, ) -> usize

Writes as many components as possible into a chunk.
Source§

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

Source§

fn is_empty(&mut self) -> bool

Determines if this component source has any more entity data to write.
Source§

fn len(&self) -> usize

Retrieves the nubmer of entities in this component source.
Source§

fn write<EntityIter: Iterator<Item = Entity>>( &mut self, allocator: EntityIter, chunk: &mut ComponentStorage, ) -> usize

Writes as many components as possible into a chunk.
Source§

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

Source§

fn is_empty(&mut self) -> bool

Determines if this component source has any more entity data to write.
Source§

fn len(&self) -> usize

Retrieves the nubmer of entities in this component source.
Source§

fn write<EntityIter: Iterator<Item = Entity>>( &mut self, allocator: EntityIter, chunk: &mut ComponentStorage, ) -> usize

Writes as many components as possible into a chunk.
Source§

impl<UWU, A, B, C, D, E, F, G, H, I, J, K, L> ComponentSource for ComponentTupleSet<(A, B, C, D, E, F, G, H, I, J, K, L), UWU>

Source§

fn is_empty(&mut self) -> bool

Determines if this component source has any more entity data to write.
Source§

fn len(&self) -> usize

Retrieves the nubmer of entities in this component source.
Source§

fn write<EntityIter: Iterator<Item = Entity>>( &mut self, allocator: EntityIter, chunk: &mut ComponentStorage, ) -> usize

Writes as many components as possible into a chunk.
Source§

impl<UWU, A, B, C, D, E, F, G, H, I, J, K, L, M> ComponentSource for ComponentTupleSet<(A, B, C, D, E, F, G, H, I, J, K, L, M), UWU>

Source§

fn is_empty(&mut self) -> bool

Determines if this component source has any more entity data to write.
Source§

fn len(&self) -> usize

Retrieves the nubmer of entities in this component source.
Source§

fn write<EntityIter: Iterator<Item = Entity>>( &mut self, allocator: EntityIter, chunk: &mut ComponentStorage, ) -> usize

Writes as many components as possible into a chunk.
Source§

impl<UWU, A, B, C, D, E, F, G, H, I, J, K, L, M, N> ComponentSource for ComponentTupleSet<(A, B, C, D, E, F, G, H, I, J, K, L, M, N), UWU>

Source§

fn is_empty(&mut self) -> bool

Determines if this component source has any more entity data to write.
Source§

fn len(&self) -> usize

Retrieves the nubmer of entities in this component source.
Source§

fn write<EntityIter: Iterator<Item = Entity>>( &mut self, allocator: EntityIter, chunk: &mut ComponentStorage, ) -> usize

Writes as many components as possible into a chunk.
Source§

impl<UWU, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O> ComponentSource for ComponentTupleSet<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O), UWU>

Source§

fn is_empty(&mut self) -> bool

Determines if this component source has any more entity data to write.
Source§

fn len(&self) -> usize

Retrieves the nubmer of entities in this component source.
Source§

fn write<EntityIter: Iterator<Item = Entity>>( &mut self, allocator: EntityIter, chunk: &mut ComponentStorage, ) -> usize

Writes as many components as possible into a chunk.
Source§

impl<UWU, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P> ComponentSource for ComponentTupleSet<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P), UWU>

Source§

fn is_empty(&mut self) -> bool

Determines if this component source has any more entity data to write.
Source§

fn len(&self) -> usize

Retrieves the nubmer of entities in this component source.
Source§

fn write<EntityIter: Iterator<Item = Entity>>( &mut self, allocator: EntityIter, chunk: &mut ComponentStorage, ) -> usize

Writes as many components as possible into a chunk.
Source§

impl<UWU, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q> ComponentSource for ComponentTupleSet<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q), UWU>

Source§

fn is_empty(&mut self) -> bool

Determines if this component source has any more entity data to write.
Source§

fn len(&self) -> usize

Retrieves the nubmer of entities in this component source.
Source§

fn write<EntityIter: Iterator<Item = Entity>>( &mut self, allocator: EntityIter, chunk: &mut ComponentStorage, ) -> usize

Writes as many components as possible into a chunk.
Source§

impl<UWU, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R> ComponentSource for ComponentTupleSet<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R), UWU>

Source§

fn is_empty(&mut self) -> bool

Determines if this component source has any more entity data to write.
Source§

fn len(&self) -> usize

Retrieves the nubmer of entities in this component source.
Source§

fn write<EntityIter: Iterator<Item = Entity>>( &mut self, allocator: EntityIter, chunk: &mut ComponentStorage, ) -> usize

Writes as many components as possible into a chunk.
Source§

impl<UWU, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S> ComponentSource for ComponentTupleSet<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S), UWU>

Source§

fn is_empty(&mut self) -> bool

Determines if this component source has any more entity data to write.
Source§

fn len(&self) -> usize

Retrieves the nubmer of entities in this component source.
Source§

fn write<EntityIter: Iterator<Item = Entity>>( &mut self, allocator: EntityIter, chunk: &mut ComponentStorage, ) -> usize

Writes as many components as possible into a chunk.
Source§

impl<UWU, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T> ComponentSource for ComponentTupleSet<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T), UWU>

Source§

fn is_empty(&mut self) -> bool

Determines if this component source has any more entity data to write.
Source§

fn len(&self) -> usize

Retrieves the nubmer of entities in this component source.
Source§

fn write<EntityIter: Iterator<Item = Entity>>( &mut self, allocator: EntityIter, chunk: &mut ComponentStorage, ) -> usize

Writes as many components as possible into a chunk.
Source§

impl<UWU, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U> ComponentSource for ComponentTupleSet<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U), UWU>

Source§

fn is_empty(&mut self) -> bool

Determines if this component source has any more entity data to write.
Source§

fn len(&self) -> usize

Retrieves the nubmer of entities in this component source.
Source§

fn write<EntityIter: Iterator<Item = Entity>>( &mut self, allocator: EntityIter, chunk: &mut ComponentStorage, ) -> usize

Writes as many components as possible into a chunk.
Source§

impl<UWU, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V> ComponentSource for ComponentTupleSet<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V), UWU>

Source§

fn is_empty(&mut self) -> bool

Determines if this component source has any more entity data to write.
Source§

fn len(&self) -> usize

Retrieves the nubmer of entities in this component source.
Source§

fn write<EntityIter: Iterator<Item = Entity>>( &mut self, allocator: EntityIter, chunk: &mut ComponentStorage, ) -> usize

Writes as many components as possible into a chunk.
Source§

impl<UWU, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W> ComponentSource for ComponentTupleSet<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W), UWU>

Source§

fn is_empty(&mut self) -> bool

Determines if this component source has any more entity data to write.
Source§

fn len(&self) -> usize

Retrieves the nubmer of entities in this component source.
Source§

fn write<EntityIter: Iterator<Item = Entity>>( &mut self, allocator: EntityIter, chunk: &mut ComponentStorage, ) -> usize

Writes as many components as possible into a chunk.
Source§

impl<UWU, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X> ComponentSource for ComponentTupleSet<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X), UWU>

Source§

fn is_empty(&mut self) -> bool

Determines if this component source has any more entity data to write.
Source§

fn len(&self) -> usize

Retrieves the nubmer of entities in this component source.
Source§

fn write<EntityIter: Iterator<Item = Entity>>( &mut self, allocator: EntityIter, chunk: &mut ComponentStorage, ) -> usize

Writes as many components as possible into a chunk.
Source§

impl<UWU, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y> ComponentSource for ComponentTupleSet<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y), UWU>

Source§

fn is_empty(&mut self) -> bool

Determines if this component source has any more entity data to write.
Source§

fn len(&self) -> usize

Retrieves the nubmer of entities in this component source.
Source§

fn write<EntityIter: Iterator<Item = Entity>>( &mut self, allocator: EntityIter, chunk: &mut ComponentStorage, ) -> usize

Writes as many components as possible into a chunk.
Source§

impl<UWU, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z> ComponentSource for ComponentTupleSet<(A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z), UWU>

Source§

fn is_empty(&mut self) -> bool

Determines if this component source has any more entity data to write.
Source§

fn len(&self) -> usize

Retrieves the nubmer of entities in this component source.
Source§

fn write<EntityIter: Iterator<Item = Entity>>( &mut self, allocator: EntityIter, chunk: &mut ComponentStorage, ) -> usize

Writes as many components as possible into a chunk.
Source§

impl<T, I> From<I> for ComponentTupleSet<T, I>
where I: Iterator<Item = T>, ComponentTupleSet<T, I>: ComponentSource,

Source§

fn from(iter: I) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl<T, I> Freeze for ComponentTupleSet<T, I>
where I: Freeze, T: Freeze,

§

impl<T, I> RefUnwindSafe for ComponentTupleSet<T, I>

§

impl<T, I> Send for ComponentTupleSet<T, I>
where I: Send, T: Send,

§

impl<T, I> Sync for ComponentTupleSet<T, I>
where I: Sync, T: Sync,

§

impl<T, I> Unpin for ComponentTupleSet<T, I>
where I: Unpin, T: Unpin,

§

impl<T, I> UnwindSafe for ComponentTupleSet<T, I>
where I: UnwindSafe, T: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> Component for T
where T: Send + Sync + 'static,