Provides a trait,
Separable, for formatting numbers with separators
between the digits. Typically this will be used to add commas or spaces
every three digits from the right, but can be configured via a
The simplest way to use the library is with trait
separate_with_commas method, which does what it sounds like:
use Separable; assert_eq!; assert_eq!; assert_eq!;
There are also methods
separate_with_underscores, in case you, your culture, or your file
format prefer those separators.
However, it's also possible to pass a policy for different behavior:
use ; let policy = SeparatorPolicy ; assert_eq!;
It’s on crates.io, so you can add
 = "0.2.0"
This crate supports Rust version 1.22 and newer.