Struct inv_sys::Inv [−][src]
pub struct Inv<T> { /* fields omitted */ }
Implementations
Returns an Optional Item for the amount of an item, that could not be placed
Tries to stack the item, returns remaining item.assert_eq! If no item is found, that it can be stacked on, the place_at_first_free method is used
If there still can be filled some slot with a minimum amount of 1, this should return true
Try to place the item at the first free spot, returns the remaining item
Set the selected slot
Decreases the amount of the item in the selected slot by 1
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl<T> RefUnwindSafe for Inv<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Inv<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more