humfmt 0.1.1

Ergonomic human-readable number formatting for Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
pub trait Locale: Copy + Clone + Default {
    fn compact_suffix(&self, idx: usize, long: bool) -> &'static str;

    fn max_compact_suffix_index(&self) -> usize {
        11
    }

    fn and_word(&self) -> &'static str;
    fn ago_word(&self) -> &'static str;
    fn ordinal_suffix(&self, n: u128) -> &'static str;
}