Struct entmet_lib::entities::entity::EntityStatusHolder
source · pub struct EntityStatusHolder { /* private fields */ }Expand description
An struct that is able to hold entity states
Implementations§
source§impl EntityStatusHolder
impl EntityStatusHolder
sourcepub fn add(&mut self, state: EntityState)
pub fn add(&mut self, state: EntityState)
Function to add a state to an entity
sourcepub fn remove(&mut self, state: EntityState)
pub fn remove(&mut self, state: EntityState)
Function to remove a state from an entity
Trait Implementations§
source§impl Clone for EntityStatusHolder
impl Clone for EntityStatusHolder
source§fn clone(&self) -> EntityStatusHolder
fn clone(&self) -> EntityStatusHolder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl From<Vec<EntityState>> for EntityStatusHolder
impl From<Vec<EntityState>> for EntityStatusHolder
source§fn from(states: Vec<EntityState>) -> Self
fn from(states: Vec<EntityState>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EntityStatusHolder
impl RefUnwindSafe for EntityStatusHolder
impl Send for EntityStatusHolder
impl Sync for EntityStatusHolder
impl Unpin for EntityStatusHolder
impl UnwindSafe for EntityStatusHolder
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