Skip to content

Mention ToString in std::fmt docs #55065

Closed
@killercup

Description

@killercup

I just noticed that neither the std::fmt documentation nor the docs for format! mention the ToString trait or its to_string method.

I realize this is not strictly related to formatting, but I can also imagine a lot of people looking for ways to get string representations of their data types. We should help them find this shortcut.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsP-mediumMedium priority

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions