Skip to main content

ambient_convert

Function ambient_convert 

Source
pub fn ambient_convert(m: &Money, to: Currency) -> Option<Money>
Expand description

Convert m to to using the ambient rate table. None if no rates are in scope or a currency’s rate is missing — the caller surfaces a clean error rather than a wrong number.