Struct shard_ecs::ArchetypeDescriptor [−][src]
pub struct ArchetypeDescriptor { /* fields omitted */ }
Expand description
Represents a full fat archetype of components. Stores all data of up-to 8 components in order to allocate them.
Implementations
Returns number of components in archetype.
Returns true if the given component can be found in this archetype.
Returns index for a given component. Panics if index is not found. Since components are sorted internally, uses binary search.
Safety
- Component MUST be present.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ArchetypeDescriptor
impl Send for ArchetypeDescriptor
impl Sync for ArchetypeDescriptor
impl Unpin for ArchetypeDescriptor
impl UnwindSafe for ArchetypeDescriptor
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V