pub fn from_metal(metal: i32, key_price: i32) -> Self {
        Self {
            // Will be 0 if metal is 30 and key price is 32 (rounds down)
            keys: metal / key_price,
            metal: metal % key_price,
        }
    }
/// Converts a metal value into the appropriate number of keys using the given key price 
/// (represented as weapons).
/// 
/// # Examples
///
/// ```
/// use tf2_price::{Currencies, refined, scrap};
/// 
/// assert_eq!(
///     Currencies::from_metal(refined!(80), refined!(60)),
///     Currencies { keys: 1, metal: refined!(20) },
/// );
/// ```
Converts a metal value into the appropriate number of keys using the given key price
(represented as weapons).
Converts a metal value into the appropriate number of keys using the given key price ( represented as weapons ) .
pub fn from_metal(metal: i32, key_price: i32) -> Self {
        Self {
            // Will be 0 if metal is 30 and key price is 32 (rounds down)
            keys: metal / key_price,
            metal: metal % key_price,
        }
    }
pub fn from_metal ( metal : i32 , key_price : i32 ) -> Self { Self { // Will be 0 if metal is 30 and key price is 32 (rounds down) keys : metal / key_price , metal : metal % key_price , } }
Converts a metal value into the appropriate number of keys using the given key price
(represented as weapons).
Converts a metal value into the appropriate number of keys using the given key price ( represented as weapons ) .
metal
i32
key_price
i32
metal
i32
key_price
i32
examples
```
use tf2_price::{Currencies, refined, scrap}.


` ` ` use tf2_price :: { Currencies refined scrap } .