pub enum ItemMode {
Stored,
Equipped,
InBelt,
OnGround,
OnCursor,
Dropping,
Socketed,
Unknown(u8),
}Expand description
Item animation/storage mode.
Variants§
Stored
Stored in inventory, stash or cube.
Equipped
Equipped on the character.
InBelt
In the belt.
OnGround
On the ground.
OnCursor
On the cursor.
Dropping
Dropping or being thrown.
Socketed
Socketed in another item.
Unknown(u8)
A value with no named variant.
Implementations§
Trait Implementations§
impl Copy for ItemMode
Source§impl<'de> Deserialize<'de> for ItemMode
impl<'de> Deserialize<'de> for ItemMode
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
impl Eq for ItemMode
Source§impl Ord for ItemMode
impl Ord for ItemMode
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for ItemMode
impl PartialOrd for ItemMode
impl StructuralPartialEq for ItemMode
Auto Trait Implementations§
impl Freeze for ItemMode
impl RefUnwindSafe for ItemMode
impl Send for ItemMode
impl Sync for ItemMode
impl Unpin for ItemMode
impl UnsafeUnpin for ItemMode
impl UnwindSafe for ItemMode
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