Struct ark_api::world::EntityInfo
source · pub struct EntityInfo { /* private fields */ }Expand description
Entity info component. Use to get information about the entity such as name assigned.
Implementations§
source§impl EntityInfo
impl EntityInfo
Trait Implementations§
source§impl ComponentTrait for EntityInfo
impl ComponentTrait for EntityInfo
source§fn get_type() -> ComponentType
fn get_type() -> ComponentType
The type of the component, as a
ComponentType enum.source§fn from_entity(handle: Entity) -> Self
fn from_entity(handle: Entity) -> Self
Adopt an
Entity, wrap in a component struct.source§fn try_from_entity(handle: Entity) -> Option<Self>
fn try_from_entity(handle: Entity) -> Option<Self>
Try to adopt an
Entity, wrapping it in a component struct.Auto Trait Implementations§
impl RefUnwindSafe for EntityInfo
impl Send for EntityInfo
impl Sync for EntityInfo
impl Unpin 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
Mutably borrows from an owned value. Read more