pub struct Monster {
pub level: u16,
pub class: Class,
pub attributes: EnumMap<AttributeType, u32>,
pub hp: u64,
pub xp: u32,
}
Fields§
§level: u16
§class: Class
§attributes: EnumMap<AttributeType, u32>
§hp: u64
§xp: u32
Implementations§
Trait Implementations§
impl Eq for Monster
impl StructuralPartialEq for Monster
Auto Trait Implementations§
impl Freeze for Monster
impl RefUnwindSafe for Monster
impl Send for Monster
impl Sync for Monster
impl Unpin for Monster
impl UnwindSafe for Monster
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.