[go: up one dir, main page]

separator 0.4.1

Formats numbers into strings with thousands separators for readability.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#[macro_use]
mod macros;

pub mod float;
pub mod signed_int;
pub mod unsigned_int;
pub mod usize;

pub use crate::float::FixedPlaceSeparatable;

/// Used for numbers that can be printed with separators for the thousands places.
pub trait Separatable {

    /// Converts the number to a string with thousands separator.
    fn separated_string(&self) -> String;
}