pub struct Archetype {
pub id: ArchetypeId,
pub component_types: Vec<TypeId>,
pub entities: Vec<Entity>,
/* private fields */
}Expand description
A table of entities that share exactly the same component type set.
Fields§
§id: ArchetypeIdUnique id for this archetype.
component_types: Vec<TypeId>Sorted, deduplicated component TypeIds.
entities: Vec<Entity>Entity handle at each row.
Implementations§
Auto Trait Implementations§
impl Freeze for Archetype
impl RefUnwindSafe for Archetype
impl Send for Archetype
impl Sync for Archetype
impl Unpin for Archetype
impl UnsafeUnpin for Archetype
impl UnwindSafe for Archetype
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more