Enum SwapWith
pub enum SwapWith {
Hotbar(u8),
Offhand,
}Expand description
The inventory location exchanged with a menu slot.
Variants§
Trait Implementations§
impl Copy for SwapWith
impl Eq for SwapWith
impl StructuralPartialEq for SwapWith
Auto Trait Implementations§
impl Freeze for SwapWith
impl RefUnwindSafe for SwapWith
impl Send for SwapWith
impl Sync for SwapWith
impl Unpin for SwapWith
impl UnsafeUnpin for SwapWith
impl UnwindSafe for SwapWith
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