Trait chunked::archetype::ComponentSet [−][src]
pub trait ComponentSet { fn as_slice(&self) -> &[ComponentTypeID]ⓘ; fn into_owned(self) -> ComponentVecSet; }
A list of component types which ensures a couple of useful invariants:
- Component Types are sorted
- EntityID is included
Required methods
fn as_slice(&self) -> &[ComponentTypeID]ⓘ
[src]
Returns a sorted slice of the component types in the set.
fn into_owned(self) -> ComponentVecSet
[src]
Convert this set into an owned copy.
If the set is already a ComponentVecSet
, no allocation is performed.
Implementors
impl ComponentSet for ComponentVecSet
[src]
impl ComponentSet for ComponentVecSet
[src]impl<'a> ComponentSet for ComponentSliceSet<'a>
[src]
impl<'a> ComponentSet for ComponentSliceSet<'a>
[src]