Glossary: Algorithms Beyond the Basics in Rust
Derive
Also written: #[derive], derive
An attribute like `#[derive(Clone)]` placed above a struct that makes Rust write standard methods for it, such as `clone`, `==` or `default`.
Glossary: Algorithms Beyond the Basics in Rust
Also written: #[derive], derive
An attribute like `#[derive(Clone)]` placed above a struct that makes Rust write standard methods for it, such as `clone`, `==` or `default`.