Enum gamemstr_common::spell::SpellRange
source · pub enum SpellRange {
S,
Touch,
Range(i32),
}Variants§
Trait Implementations§
source§impl Clone for SpellRange
impl Clone for SpellRange
source§fn clone(&self) -> SpellRange
fn clone(&self) -> SpellRange
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 SpellRange
impl Debug for SpellRange
source§impl<'de> Deserialize<'de> for SpellRange
impl<'de> Deserialize<'de> for SpellRange
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 SpellRange
impl Display for SpellRange
source§impl Hash for SpellRange
impl Hash for SpellRange
source§impl Ord for SpellRange
impl Ord for SpellRange
source§fn cmp(&self, other: &SpellRange) -> Ordering
fn cmp(&self, other: &SpellRange) -> 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<SpellRange> for SpellRange
impl PartialEq<SpellRange> for SpellRange
source§fn eq(&self, other: &SpellRange) -> bool
fn eq(&self, other: &SpellRange) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<SpellRange> for SpellRange
impl PartialOrd<SpellRange> for SpellRange
source§fn partial_cmp(&self, other: &SpellRange) -> Option<Ordering>
fn partial_cmp(&self, other: &SpellRange) -> 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