NumberFormat

Trait NumberFormat 

Source
pub trait NumberFormat: Display {
    // Required method
    fn number_format(num: Self, precision: Option<u32>) -> String;
}

Required Methods§

Source

fn number_format(num: Self, precision: Option<u32>) -> String

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl NumberFormat for f64

Source§

fn number_format(num: Self, precision: Option<u32>) -> String

Source§

impl NumberFormat for i32

Source§

fn number_format(num: Self, _precision: Option<u32>) -> String

Implementors§