Glossary: Software Design Patterns in Rust
derive
Also written: #[derive], #[derive(...)]
An attribute that asks the compiler to write standard trait code for a struct or enum, such as Clone, Debug, PartialEq or Default.
Glossary: Software Design Patterns in Rust
Also written: #[derive], #[derive(...)]
An attribute that asks the compiler to write standard trait code for a struct or enum, such as Clone, Debug, PartialEq or Default.