#[non_exhaustive]#[repr(i32)]pub enum InventoryType {
Show 28 variants
NonEquippable = 0,
Head = 1,
Neck = 2,
Shoulder = 3,
Body = 4,
Chest = 5,
Waist = 6,
Legs = 7,
Feet = 8,
Wrists = 9,
Hands = 10,
Finger = 11,
Trinket = 12,
Weapon = 13,
Shield = 14,
Ranged = 15,
Cloak = 16,
TwoHandWeapon = 17,
Bag = 18,
Tabard = 19,
Robe = 20,
MainHandWeapon = 21,
OffHandWeapon = 22,
Holdable = 23,
Ammo = 24,
Thrown = 25,
RangedRight = 26,
Relic = 28,
}Expand description
Item.InventoryType.
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.
NonEquippable = 0
Head = 1
Neck = 2
Shoulder = 3
Body = 4
Chest = 5
Waist = 6
Legs = 7
Feet = 8
Wrists = 9
Hands = 10
Finger = 11
Trinket = 12
Weapon = 13
Shield = 14
Ranged = 15
Cloak = 16
TwoHandWeapon = 17
Bag = 18
Tabard = 19
Robe = 20
MainHandWeapon = 21
OffHandWeapon = 22
Holdable = 23
Ammo = 24
Thrown = 25
RangedRight = 26
Relic = 28
Implementations§
Source§impl InventoryType
impl InventoryType
pub fn display_name(self) -> &'static str
Trait Implementations§
Source§impl Clone for InventoryType
impl Clone for InventoryType
Source§fn clone(&self) -> InventoryType
fn clone(&self) -> InventoryType
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 InventoryType
impl Debug for InventoryType
Source§impl PartialEq for InventoryType
impl PartialEq for InventoryType
Source§impl TryFrom<i32> for InventoryType
impl TryFrom<i32> for InventoryType
Source§impl TryFromPrimitive for InventoryType
impl TryFromPrimitive for InventoryType
impl Copy for InventoryType
impl Eq for InventoryType
impl StructuralPartialEq for InventoryType
Auto Trait Implementations§
impl Freeze for InventoryType
impl RefUnwindSafe for InventoryType
impl Send for InventoryType
impl Sync for InventoryType
impl Unpin for InventoryType
impl UnsafeUnpin for InventoryType
impl UnwindSafe for InventoryType
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