pub enum DamageKind {
Damage {},
CombatDamage {},
NoncombatDamage {},
}Variants§
Implementations§
Source§impl DamageKind
impl DamageKind
pub fn try_from_span(span: &Span<'_>) -> Option<Self>
Trait Implementations§
Source§impl Clone for DamageKind
impl Clone for DamageKind
Source§fn clone(&self) -> DamageKind
fn clone(&self) -> DamageKind
Returns a duplicate 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 DamageKind
impl Debug for DamageKind
Source§impl<'de> Deserialize<'de> for DamageKind
impl<'de> Deserialize<'de> for DamageKind
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 Hash for DamageKind
impl Hash for DamageKind
Source§impl Idris for DamageKind
impl Idris for DamageKind
Source§impl Ord for DamageKind
impl Ord for DamageKind
Source§fn cmp(&self, other: &DamageKind) -> Ordering
fn cmp(&self, other: &DamageKind) -> 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 DamageKind
impl PartialEq for DamageKind
Source§impl PartialOrd for DamageKind
impl PartialOrd for DamageKind
Source§impl Serialize for DamageKind
impl Serialize for DamageKind
impl Copy for DamageKind
impl Eq for DamageKind
impl StructuralPartialEq for DamageKind
Auto Trait Implementations§
impl Freeze for DamageKind
impl RefUnwindSafe for DamageKind
impl Send for DamageKind
impl Sync for DamageKind
impl Unpin for DamageKind
impl UnwindSafe for DamageKind
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