pub struct Tag { /* private fields */ }Expand description
Tag component.
Use to group and identify entities. An added tag to an entity will by default be initialized to 0.
Implementations§
Trait Implementations§
source§impl ComponentTrait for Tag
impl ComponentTrait for Tag
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 Tag
impl Send for Tag
impl Sync for Tag
impl Unpin for Tag
impl UnwindSafe for Tag
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