Enum gamemstr_common::DamageType
source · pub enum DamageType {
Show 13 variants
Slashing,
Piercing,
Bludgeoning,
Poison,
Acid,
Fire,
Cold,
Radiant,
Necrotic,
Lightning,
Thunder,
Force,
Psychic,
}Variants§
Slashing
Piercing
Bludgeoning
Poison
Acid
Fire
Cold
Radiant
Necrotic
Lightning
Thunder
Force
Psychic
Trait Implementations§
source§impl Clone for DamageType
impl Clone for DamageType
source§fn clone(&self) -> DamageType
fn clone(&self) -> DamageType
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 Debug for DamageType
impl Debug for DamageType
source§impl<'de> Deserialize<'de> for DamageType
impl<'de> Deserialize<'de> for DamageType
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for DamageType
impl Display for DamageType
source§impl Hash for DamageType
impl Hash for DamageType
source§impl Ord for DamageType
impl Ord for DamageType
source§fn cmp(&self, other: &DamageType) -> Ordering
fn cmp(&self, other: &DamageType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<DamageType> for DamageType
impl PartialEq<DamageType> for DamageType
source§fn eq(&self, other: &DamageType) -> bool
fn eq(&self, other: &DamageType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<DamageType> for DamageType
impl PartialOrd<DamageType> for DamageType
source§fn partial_cmp(&self, other: &DamageType) -> Option<Ordering>
fn partial_cmp(&self, other: &DamageType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read more