pub enum Slot {
Empty,
Data(i32, i8, Option<NbtValue>),
}Expand description
Enum of a slot
This enum can either be Empty or hold data of an inventory slot
Variants§
Empty
This variant tells, that the slot is empty
Data(i32, i8, Option<NbtValue>)
This variant holds slot data
The data recorded is this:
- Item id
- Item amount
- Optional NBT data of the item in the slot
Trait Implementations§
source§impl ImportantFunctions for Slot
impl ImportantFunctions for Slot
§type ReturnType = <Slot as ImportantFunctions>::InputType
type ReturnType = <Slot as ImportantFunctions>::InputType
The type returned by
get_valuesource§impl PartialEq for Slot
impl PartialEq for Slot
impl StructuralPartialEq for Slot
Auto Trait Implementations§
impl Freeze for Slot
impl RefUnwindSafe for Slot
impl Send for Slot
impl Sync for Slot
impl Unpin for Slot
impl UnwindSafe for Slot
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