#[non_exhaustive]#[repr(i32)]pub enum ItemClass {
Show 21 variants
Consumable = 0,
Container = 1,
Weapon = 2,
Gem = 3,
Armor = 4,
Reagent = 5,
Projectile = 6,
TradeGoods = 7,
ItemEnhancement = 8,
Recipe = 9,
Money = 10,
Quiver = 11,
Quest = 12,
Key = 13,
Permanent = 14,
Miscellaneous = 15,
Glyph = 16,
BattlePet = 17,
Token = 18,
WowToken = 19,
Profession = 20,
}Expand description
Item.ClassID.
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.
Consumable = 0
Container = 1
Weapon = 2
Gem = 3
Armor = 4
Reagent = 5
Projectile = 6
TradeGoods = 7
ItemEnhancement = 8
Recipe = 9
Money = 10
Quiver = 11
Quest = 12
Key = 13
Permanent = 14
Miscellaneous = 15
Glyph = 16
BattlePet = 17
Token = 18
WowToken = 19
Profession = 20
Trait Implementations§
impl Copy for ItemClass
impl Eq for ItemClass
impl StructuralPartialEq for ItemClass
Auto Trait Implementations§
impl Freeze for ItemClass
impl RefUnwindSafe for ItemClass
impl Send for ItemClass
impl Sync for ItemClass
impl Unpin for ItemClass
impl UnsafeUnpin for ItemClass
impl UnwindSafe for ItemClass
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more