pub enum EntityState<'a> {
Character(&'a CharacterState),
Opponent(&'a OpponentState),
}Variants§
Character(&'a CharacterState)
Opponent(&'a OpponentState)
Implementations§
Source§impl<'a> EntityState<'a>
impl<'a> EntityState<'a>
pub fn id(&self) -> Uuid
pub fn level(&self) -> i64
pub fn inventory(&self) -> &Vec<Item>
pub fn class(&self) -> ClassId
pub fn equipped_abilities(&self) -> &EquippedAbilities
pub fn equipped_pets(&self) -> Option<&EquippedPets>
Trait Implementations§
Source§impl<'a> Clone for EntityState<'a>
impl<'a> Clone for EntityState<'a>
Source§fn clone(&self) -> EntityState<'a>
fn clone(&self) -> EntityState<'a>
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<'a> Debug for EntityState<'a>
impl<'a> Debug for EntityState<'a>
Source§impl<'a> PartialEq for EntityState<'a>
impl<'a> PartialEq for EntityState<'a>
impl<'a> Eq for EntityState<'a>
impl<'a> StructuralPartialEq for EntityState<'a>
Auto Trait Implementations§
impl<'a> Freeze for EntityState<'a>
impl<'a> RefUnwindSafe for EntityState<'a>
impl<'a> Send for EntityState<'a>
impl<'a> Sync for EntityState<'a>
impl<'a> Unpin for EntityState<'a>
impl<'a> UnwindSafe for EntityState<'a>
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<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
Checks if this value is equivalent to the given key. Read more