pub struct ItemStack {
pub id: i32,
pub count: i8,
pub nbt: Option<RawNbt>,
}Expand description
A non-empty item stack.
Fields§
§id: i32Registry item id.
count: i8Stack size.
nbt: Option<RawNbt>Item NBT, if any.
Trait Implementations§
impl Eq for ItemStack
impl StructuralPartialEq for ItemStack
Auto Trait Implementations§
impl !Freeze for ItemStack
impl RefUnwindSafe for ItemStack
impl Send for ItemStack
impl Sync for ItemStack
impl Unpin for ItemStack
impl UnsafeUnpin for ItemStack
impl UnwindSafe for ItemStack
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