to_unit

Function to_unit 

Source
pub fn to_unit<T>(
    amount: T,
    current_unit: &CurrencyUnit,
    target_unit: &CurrencyUnit,
) -> Result<Amount, Error>
where T: Into<u64>,
Expand description

Helper function to convert units