pub type ComponentStorageRef<'a, C> = ComponentStorage<'a, C, &'a UnsafeVec>;

Implementations§

source§

impl<'a, C: Component> ComponentStorageRef<'a, C>

source

pub fn iter(self) -> Iter<'a, C, Self>

Returns an iterator over all components.

Trait Implementations§

source§

impl<'a, C: Component + 'a> IntoIterator for ComponentStorageRef<'a, C>

source§

fn into_iter(self) -> Self::IntoIter

Returns an iterator over all components.

§

type Item = &'a C

The type of the elements being iterated over.
§

type IntoIter = Iter<'a, C, ComponentStorage<'a, C, &'a UnsafeVec>>

Which kind of iterator are we turning this into?