pub enum AddError {
InventoryFull,
PerSlotCapReached(u32),
}Expand description
Error returned when adding an item to an inventory fails due to capacity limits.
Variants§
InventoryFull
The inventory has reached its maximum number of distinct item slots.
PerSlotCapReached(u32)
A single slot has reached its per-slot quantity cap.
Trait Implementations§
impl Copy for AddError
impl Eq for AddError
impl StructuralPartialEq for AddError
Auto Trait Implementations§
impl Freeze for AddError
impl RefUnwindSafe for AddError
impl Send for AddError
impl Sync for AddError
impl Unpin for AddError
impl UnsafeUnpin for AddError
impl UnwindSafe for AddError
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