Struct rpg::inventory::Inventory [] [src]

pub struct Inventory { /* fields omitted */ }

An inventory holding items

Methods

impl Inventory
[src]

Creates a new instance of Inventory

Adds an item to the inventory. If the inventory is full, the item won't be added to the inventory and a Err(Item) is returned.

Returns true it the inventory is full

Trait Implementations

impl Debug for Inventory
[src]

Formats the value using the given formatter.