Skip to content

fmt traits docs should provide more context #25765

Closed
@huonw

Description

@huonw

Someone looking at some code with, say, #[derive(Debug)] might search the docs for Debug and land on Debug, which doesn't make it immediately obvious what it is for (it currently just says "Format trait for the :? format. Useful for debugging, all types should implement this."). It would be great if each trait had an example of using it to format something and maybe an explicit pointer to the main std::fmt docs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions