pub fn produce_item(&self, item: Tool) -> Result<UniverseTransaction, ToolError> {
        if let Some(ref character) = self.character {
            Ok(
                CharacterTransaction::inventory(InventoryTransaction::insert(item))
                    .bind(character.clone()),
            )
        } else {
            // TODO: Specific error
            Err(ToolError::NotUsable)
        }
    }
/// Add the provided item to the inventory from which the tool was used.
Add the provided item to the inventory from which the tool was used.
Add the provided item to the inventory from which the tool was used .
pub fn produce_item(&self, item: Tool) -> Result<UniverseTransaction, ToolError> {
        if let Some(ref character) = self.character {
            Ok(
                CharacterTransaction::inventory(InventoryTransaction::insert(item))
                    .bind(character.clone()),
            )
        } else {
            // TODO: Specific error
            Err(ToolError::NotUsable)
        }
    }
pub fn produce_item ( & self , item : Tool ) -> Result < UniverseTransaction , ToolError > { if let Some ( ref character ) = self . character { Ok ( CharacterTransaction :: inventory ( InventoryTransaction :: insert ( item ) ) . bind ( character . clone ( ) ) , ) } else { // TODO: Specific error Err ( ToolError :: NotUsable ) } }
Add the provided item to the inventory from which the tool was used.
Add the provided item to the inventory from which the tool was used .
&self
item
Tool