Skip to content

Clarify docs for "! and traits" #76094

Closed
@camelid

Description

@camelid

The section "! and traits" says:

When writing your own traits, ! should have an impl whenever there is an obvious impl which doesn't panic!.

Yet it doesn't explain why you should impl your traits for !. I think it would be good for someone who understands ! well to write up a sentence or two about why you should impl your traits for !. I myself don't quite understand what the reason for doing so is ;)

@rustbot modify labels: T-doc C-enhancement

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsC-enhancementCategory: An issue proposing an enhancement or a PR with one.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions