pub struct ArchetypeInfo {
pub index: u32,
pub len: usize,
pub components: Vec<&'static str>,
}Expand description
One archetype: its id, how many of its rows a scope sees, and its component names.
Fields§
§index: u32The archetype id, the value EntityInfo::archetype carries.
len: usizeThe number of rows visible from the scope, not the archetype’s total.
This is the only definition under which the lengths sum to
WorldInfo::entities.
components: Vec<&'static str>Its component names, in column order.
Trait Implementations§
Source§impl Clone for ArchetypeInfo
impl Clone for ArchetypeInfo
Source§impl Debug for ArchetypeInfo
impl Debug for ArchetypeInfo
impl Eq for ArchetypeInfo
Source§impl<'ʄ> Facet<'ʄ> for ArchetypeInfo
Available on crate feature reflect only.
impl<'ʄ> Facet<'ʄ> for ArchetypeInfo
Available on crate feature
reflect only.Source§impl PartialEq for ArchetypeInfo
impl PartialEq for ArchetypeInfo
impl StructuralPartialEq for ArchetypeInfo
Auto Trait Implementations§
impl Forget for ArchetypeInfo
impl Freeze for ArchetypeInfo
impl RefUnwindSafe for ArchetypeInfo
impl Send for ArchetypeInfo
impl Sync for ArchetypeInfo
impl Unpin for ArchetypeInfo
impl UnsafeUnpin for ArchetypeInfo
impl UnwindSafe for ArchetypeInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Component for Twhere
T: 'static,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.