Enum arelith::item::DamageType
source · pub enum DamageType {
Show 17 variants
Slashing,
Piercing,
Bludgeoning,
Magical,
Acid,
Cold,
Divine,
Electrical,
Fire,
Negative,
Positive,
Sonic,
Entropy,
Force,
Psychic,
Poison,
Unknown,
}Variants§
Slashing
Piercing
Bludgeoning
Magical
Acid
Cold
Divine
Electrical
Fire
Negative
Positive
Sonic
Entropy
Force
Psychic
Poison
Unknown
Implementations§
source§impl DamageType
impl DamageType
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 From<&str> for DamageType
impl From<&str> 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 for DamageType
impl PartialEq 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 for DamageType
impl PartialOrd 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 moresource§impl Serialize for DamageType
impl Serialize for DamageType
impl Copy for DamageType
impl Eq for DamageType
impl StructuralPartialEq for DamageType
Auto Trait Implementations§
impl Freeze for DamageType
impl RefUnwindSafe for DamageType
impl Send for DamageType
impl Sync for DamageType
impl Unpin for DamageType
impl UnwindSafe for DamageType
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