Enum EquipmentSlotGroup
#[non_exhaustive]pub enum EquipmentSlotGroup {
Any,
MainHand,
OffHand,
Hand,
Feet,
Legs,
Chest,
Head,
Armor,
Body,
Saddle,
}Expand description
The slots an item’s attribute modifier applies in (vanilla’s
EquipmentSlotGroup).
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.
Any
any: every slot.
MainHand
mainhand.
OffHand
offhand.
Hand
hand: either hand.
Feet
feet.
Legs
legs.
Chest
chest.
Head
head.
Armor
armor: feet, legs, chest, head and body.
Body
body: an animal’s armor slot.
Saddle
saddle.
Trait Implementations§
§impl Clone for EquipmentSlotGroup
impl Clone for EquipmentSlotGroup
§fn clone(&self) -> EquipmentSlotGroup
fn clone(&self) -> EquipmentSlotGroup
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EquipmentSlotGroup
§impl Debug for EquipmentSlotGroup
impl Debug for EquipmentSlotGroup
impl Eq for EquipmentSlotGroup
§impl Hash for EquipmentSlotGroup
impl Hash for EquipmentSlotGroup
§impl PartialEq for EquipmentSlotGroup
impl PartialEq for EquipmentSlotGroup
impl StructuralPartialEq for EquipmentSlotGroup
Auto Trait Implementations§
impl Freeze for EquipmentSlotGroup
impl RefUnwindSafe for EquipmentSlotGroup
impl Send for EquipmentSlotGroup
impl Sync for EquipmentSlotGroup
impl Unpin for EquipmentSlotGroup
impl UnsafeUnpin for EquipmentSlotGroup
impl UnwindSafe for EquipmentSlotGroup
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