Derivable traits

Where can I find a list of the builtin traits can be automatically implemented using #[derive(name)].
I know the list includes at least Clone, Copy, Debug, Display, PartialEq, and PartialOrd.
Perhaps there are rules about when each of these can be automatically implemented.

The source code for their expansion can be found at https://github.com/rust-lang/rust/tree/master/compiler/rustc_builtin_macros/src/deriving

I found a list at https://doc.rust-lang.org/rust-by-example/trait/derive.html.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.