bcmyers / num-format

A Rust crate for producing string representations of numbers, formatted according to international standards
Apache License 2.0
123 stars 22 forks source link

Possibly add "custom" Grouping for maximum flexibility #5

Closed bcmyers closed 5 years ago

bcmyers commented 5 years ago

Possibly create Grouping::Custom(Vec<usize>) variant of Grouping enum so that one could use completely arbitrary groupings (in addition to Grouping::Standard, Grouping::Indian and Grouping::Posix). Worry would be that supporting arbitrary groupings, however, might slow things down for the three standard Groupings, which might not be worth it...