اشتقاق
Supported traits can be automatically implemented for your custom types, as follows:
Speaker Notes
This slide should take about 3 minutes.
Derivation is implemented with macros, and many crates provide useful derive macros to add useful functionality. For example, serde
can derive serialization support for a struct using #[derive(Serialize)]
.