num-format icon indicating copy to clipboard operation
num-format copied to clipboard

Type wrapper?

Open ciphergoth opened this issue 1 year ago • 0 comments

It would be convenient to be able to call println with formatted numbers without pre-serializing them. Might some sort of type wrapper implementing the Display trait work well? Then we could write something like:

println!("We have {} subscribers", num_format::Wrapper::wrapped(&num_format::Locale::en, subscriber_count));

ciphergoth avatar Apr 15 '24 01:04 ciphergoth