Beginner
Rust
Q28 / 100
What does the derive attribute do?
Correct! Well done.
Incorrect.
The correct answer is B) Automatically implements specified traits (Debug, Clone, PartialEq, etc.) for a type using procedural macros
B
Correct Answer
Automatically implements specified traits (Debug, Clone, PartialEq, etc.) for a type using procedural macros
Explanation
#[derive(Debug, Clone, PartialEq)] auto-generates the implementations of those traits for the struct or enum.
Progress
28/100