pub struct EntityInfo {
pub entity: Entity,
pub name: &'static str,
pub archetype: u32,
pub row: usize,
pub scope: Entity,
pub components: Vec<&'static str>,
}Expand description
A live entity’s location and component names.
Only a live, visible entity has one: Scope::entity_info answers
EntityAccessError::NotAlive or EntityAccessError::NotVisible for a
handle that is neither, so there is no alive field to report.
Fields§
§entity: EntityThe entity’s handle.
name: &'static strThe entity’s name, which its handle carries but its bits do not, so a reader of this listing sees the label the entity was spawned with even though the handle travels as a bare integer.
archetype: u32The archetype the entity lives in, as Location::archetype.
row: usizeThe entity’s row in that archetype, as Location::row.
scope: EntityThe entity’s scope: the entity it lives in, which is its parent in the scope tree.
An entity’s scope is deliberately not a component, so it is reported
here instead: a client reading a listing sees the same relation a
Scope traverses.
components: Vec<&'static str>The component names of the entity’s archetype, in column order.
Trait Implementations§
Source§impl Clone for EntityInfo
impl Clone for EntityInfo
Source§impl Debug for EntityInfo
impl Debug for EntityInfo
impl Eq for EntityInfo
Source§impl<'ʄ> Facet<'ʄ> for EntityInfo
Available on crate feature reflect only.
impl<'ʄ> Facet<'ʄ> for EntityInfo
reflect only.Source§impl PartialEq for EntityInfo
impl PartialEq for EntityInfo
impl StructuralPartialEq for EntityInfo
Auto Trait Implementations§
impl Forget for EntityInfo
impl Freeze for EntityInfo
impl RefUnwindSafe for EntityInfo
impl Send for EntityInfo
impl Sync for EntityInfo
impl Unpin for EntityInfo
impl UnsafeUnpin for EntityInfo
impl UnwindSafe for EntityInfo
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
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
key and return true if they are equal.