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.
The
deriveattribute documentation should probably list the built-in traits that are derivable. To my knowledge, the list is:CloneHashPartialEqEqPartialOrdOrdDebugDefaultSendSyncCopyShould 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.