Enum ItemRarity
#[non_exhaustive]pub enum ItemRarity {
Common,
Uncommon,
Rare,
Epic,
}Expand description
The effective rarity of an item stack, after its enchantment upgrade.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Common
The ordinary rarity.
Uncommon
An uncommon item.
Rare
A rare item, including enchanted common and uncommon items.
Epic
An epic item, including enchanted rare items.
Implementations§
§impl ItemRarity
impl ItemRarity
Trait Implementations§
§impl Clone for ItemRarity
impl Clone for ItemRarity
§fn clone(&self) -> ItemRarity
fn clone(&self) -> ItemRarity
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ItemRarity
§impl Debug for ItemRarity
impl Debug for ItemRarity
impl Eq for ItemRarity
§impl PartialEq for ItemRarity
impl PartialEq for ItemRarity
impl StructuralPartialEq for ItemRarity
Auto Trait Implementations§
impl Freeze for ItemRarity
impl RefUnwindSafe for ItemRarity
impl Send for ItemRarity
impl Sync for ItemRarity
impl Unpin for ItemRarity
impl UnsafeUnpin for ItemRarity
impl UnwindSafe for ItemRarity
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