Function format_units_with

Source
pub fn format_units_with<T, K, E>(
    amount: T,
    units: K,
    separator: DecimalSeparator,
) -> Result<String, UnitsError>
where T: Into<ParseUnits>, K: TryInto<Unit, Error = E>, UnitsError: From<E>,
Expand description

Formats the given number of Wei as the given unit with a custom decimal separator.