pub enum BodySlot {
Head,
Body,
Arms,
Legs,
Feet,
Back,
Waist,
}Expand description
Body region a wearable item occupies — at most one item equipped per slot.
Head/Body/Arms/Legs/Feet are reserved for future armor (plans/11); only
Back (backpack) and Waist (belt) have equippable items today (plans/08 §4.1).
Variants§
Trait Implementations§
impl Copy for BodySlot
Source§impl<'de> Deserialize<'de> for BodySlot
impl<'de> Deserialize<'de> for BodySlot
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 BodySlot
Source§impl Ord for BodySlot
impl Ord for BodySlot
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
Source§impl PartialOrd for BodySlot
impl PartialOrd for BodySlot
impl StructuralPartialEq for BodySlot
Auto Trait Implementations§
impl Freeze for BodySlot
impl RefUnwindSafe for BodySlot
impl Send for BodySlot
impl Sync for BodySlot
impl Unpin for BodySlot
impl UnsafeUnpin for BodySlot
impl UnwindSafe for BodySlot
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