pub enum EquipSlot<Id: Copy + Eq + Hash + Debug> {
Weapon,
Head,
Body,
Accessory1,
Accessory2,
HeldItem,
Custom(Id),
}Expand description
Represents a slot where an item can be equipped.
Provides a set of standard equipment slots (Weapon,
Head, Body,
Accessory1, Accessory2,
HeldItem) plus a Custom variant
for game-specific slots.
Variants§
Implementations§
Trait Implementations§
impl<Id: Copy + Copy + Eq + Hash + Debug> Copy for EquipSlot<Id>
impl<Id: Eq + Copy + Eq + Hash + Debug> Eq for EquipSlot<Id>
impl<Id: PartialEq + Copy + Eq + Hash + Debug> StructuralPartialEq for EquipSlot<Id>
Auto Trait Implementations§
impl<Id> Freeze for EquipSlot<Id>where
Id: Freeze,
impl<Id> RefUnwindSafe for EquipSlot<Id>where
Id: RefUnwindSafe,
impl<Id> Send for EquipSlot<Id>where
Id: Send,
impl<Id> Sync for EquipSlot<Id>where
Id: Sync,
impl<Id> Unpin for EquipSlot<Id>where
Id: Unpin,
impl<Id> UnsafeUnpin for EquipSlot<Id>where
Id: UnsafeUnpin,
impl<Id> UnwindSafe for EquipSlot<Id>where
Id: UnwindSafe,
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