pub struct WorldInfo {
pub entities: usize,
pub archetypes: usize,
pub components: Vec<&'static str>,
pub root: Entity,
pub shared: Entity,
}Expand description
A scope’s high-level shape.
Fields§
§entities: usizeThe number of live entities visible from the scope, the roots included.
archetypes: usizeThe number of archetypes with at least one visible row.
components: Vec<&'static str>The names of the component types this scope can see, sorted.
A type is named here when an archetype holding at least one visible row
carries it, which is the same rule as WorldInfo::archetypes: the two
describe the rows the scope reaches, not the types that ever entered the
world.
root: EntityThe root entity, which owns everything.
The shared entity, whose subtree every scope sees.
Trait Implementations§
impl Eq for WorldInfo
impl StructuralPartialEq for WorldInfo
Auto Trait Implementations§
impl Forget for WorldInfo
impl Freeze for WorldInfo
impl RefUnwindSafe for WorldInfo
impl Send for WorldInfo
impl Sync for WorldInfo
impl Unpin for WorldInfo
impl UnsafeUnpin for WorldInfo
impl UnwindSafe for WorldInfo
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.