pub struct Item {
pub material: usize,
pub count: i32,
pub reserved: i32,
}Expand description
A StorageComponent entry (16 bytes): the raw material, the count and the reserved count.
Fields§
§material: usizeThe raw material.
count: i32How many are stored.
reserved: i32How many are reserved.
Trait Implementations§
impl Eq for Item
impl StructuralPartialEq for Item
Auto Trait Implementations§
impl Freeze for Item
impl RefUnwindSafe for Item
impl Send for Item
impl Sync for Item
impl Unpin for Item
impl UnsafeUnpin for Item
impl UnwindSafe for Item
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