pub fn insert(item: Tool) -> Self {
        // TODO: If the item is `Tool::None`, it should become a noop.
        InventoryTransaction {
            replace: BTreeMap::default(),
            insert: vec![item],
        }
    }
/// Transaction to insert an item into an inventory, which will fail if there is no space.
Transaction to insert an item into an inventory, which will fail if there is no space.
Transaction to insert an item into an inventory which will fail if there is no space .
pub fn insert(item: Tool) -> Self {
        // TODO: If the item is `Tool::None`, it should become a noop.
        InventoryTransaction {
            replace: BTreeMap::default(),
            insert: vec![item],
        }
    }
pub fn insert ( item : Tool ) -> Self { // TODO: If the item is `Tool::None`, it should become a noop. InventoryTransaction { replace : BTreeMap :: default ( ) , insert : vec ! [ item ] , } }
Transaction to insert an item into an inventory, which will fail if there is no space.
Transaction to insert an item into an inventory which will fail if there is no space .
item
Tool