Skip to content

Expand derive documentation. #540

Description

@ehuss

The derive attribute documentation should probably list the built-in traits that are derivable. To my knowledge, the list is:

  • Clone
  • Hash
  • PartialEq
  • Eq
  • PartialOrd
  • Ord
  • Debug
  • Default
  • Send
  • Sync
  • Copy

Should the documentation also specify the semantics of how the default implementations behave? It seems like important information, but I think it is mostly covered in the core/std docs. Another option is to link to https://doc.rust-lang.org/book/appendix-03-derivable-traits.html.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions