Skip to content

Type wrapper? #46

@ciphergoth

Description

@ciphergoth

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));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions