Trait chunked::component_data::ComponentData[][src]

pub trait ComponentData<'a> {
    type Iterator: Iterator<Item = ComponentValueRef<'a>> + Clone;
    fn iter(&self) -> Self::Iterator;
}

Component data to assign to an entity.

Invariant: this iterator must be sorted.

Associated Types

Loading content...

Required methods

fn iter(&self) -> Self::Iterator[src]

Return an iterator over this component data.

This iterator must be sorted by type ID and contain no duplicates.

Loading content...

Implementors

impl<'a> ComponentData<'a> for ComponentDataVec<'a>[src]

type Iterator = Cloned<Iter<'a, ComponentValueRef<'a>>>

fn iter(&self) -> Self::Iterator[src]

impl<'a, 'b> ComponentData<'a> for ComponentDataSlice<'a, 'b>[src]

type Iterator = Cloned<Iter<'b, ComponentValueRef<'a>>>

fn iter(&self) -> Self::Iterator[src]

Loading content...