Enum ezomyte::Rarity
[−]
pub enum Rarity { Normal, Magic, Rare, Unique, }
Rarity of an item.
Variants
Normal
Normal ("white") item.
This also includes items which aren't gear, like gems or divination cards.
Magic
Magic ("blue") item.
Rare
Rare ("yellow") item.
Unique
Unique item.
Methods
impl Rarity
pub fn iter_variants() -> Rarities
Trait Implementations
impl Clone for Rarity
fn clone(&self) -> Rarity
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for Rarity
impl Debug for Rarity
fn fmt(&self, __arg_0: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for Rarity
impl Hash for Rarity
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl PartialEq for Rarity
fn eq(&self, __arg_0: &Rarity) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Default for Rarity
[src]
impl<'de> Deserialize<'de> for Rarity
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more