pub struct ItemSlot {
pub item: Item,
pub prefix: Option<Prefix>,
pub count: PositiveI32,
}Fields§
§item: Item§prefix: Option<Prefix>§count: PositiveI32Trait Implementations§
Source§impl From<ItemSlot> for SingleItemSlot
impl From<ItemSlot> for SingleItemSlot
Source§impl From<SingleItemSlot> for ItemSlot
impl From<SingleItemSlot> for ItemSlot
Source§fn from(value: SingleItemSlot) -> Self
fn from(value: SingleItemSlot) -> Self
Converts to this type from the input type.
Source§impl From<WorldItemSlot> for ItemSlot
impl From<WorldItemSlot> for ItemSlot
Source§fn from(value: WorldItemSlot) -> Self
fn from(value: WorldItemSlot) -> Self
Converts to this type from the input type.
Source§impl TryFrom<ItemSlot> for WorldItemSlot
impl TryFrom<ItemSlot> for WorldItemSlot
impl Copy for ItemSlot
impl Eq for ItemSlot
impl StructuralPartialEq for ItemSlot
Auto Trait Implementations§
impl Freeze for ItemSlot
impl RefUnwindSafe for ItemSlot
impl Send for ItemSlot
impl Sync for ItemSlot
impl Unpin for ItemSlot
impl UnwindSafe for ItemSlot
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