pub enum EquipError {
SlotFull,
InvalidSlot,
}Expand description
Error that can occur when equipping an item.
Variants§
SlotFull
The target slot already contains an item (unequip it first).
InvalidSlot
The target slot is not valid for this equipment set.
Trait Implementations§
Source§impl Clone for EquipError
impl Clone for EquipError
Source§fn clone(&self) -> EquipError
fn clone(&self) -> EquipError
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 EquipError
Source§impl Debug for EquipError
impl Debug for EquipError
impl Eq for EquipError
Source§impl PartialEq for EquipError
impl PartialEq for EquipError
impl StructuralPartialEq for EquipError
Auto Trait Implementations§
impl Freeze for EquipError
impl RefUnwindSafe for EquipError
impl Send for EquipError
impl Sync for EquipError
impl Unpin for EquipError
impl UnsafeUnpin for EquipError
impl UnwindSafe for EquipError
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