convert

Function convert 

Source
pub fn convert(item: &Dinero, rate: &Rate) -> Dinero
Expand description

Convert a Dinero object from a currency to another.

When using scaled amounts, the function converts the returned object to the safest scale.