pub trait Separable {
// Required methods
fn separate_with_commas(&self) -> String;
fn separate_with_underscores(&self) -> String;
}Expand description
Extension trait for formatting numbers with separators.
Drop-in replacement for the thousands::Separable trait.
Required Methods§
Sourcefn separate_with_commas(&self) -> String
fn separate_with_commas(&self) -> String
Formats the number with commas as thousand separators.
Sourcefn separate_with_underscores(&self) -> String
fn separate_with_underscores(&self) -> String
Formats the number with underscores as thousand separators.