Trait Separatable

Source
pub trait Separatable {
    // Required method
    fn separated_string(&self) -> String;
}
Expand description

Used for numbers that can be printed with separators for the thousands places.

Required Methods§

Source

fn separated_string(&self) -> String

Converts the number to a string with thousands separator.

Implementations on Foreign Types§

Source§

impl Separatable for f32

Source§

impl Separatable for f64

Source§

impl Separatable for i16

Source§

impl Separatable for i32

Source§

impl Separatable for i64

Source§

impl Separatable for i128

Source§

impl Separatable for u16

Source§

impl Separatable for u32

Source§

impl Separatable for u64

Source§

impl Separatable for u128

Source§

impl Separatable for usize

Implementors§