Intermediate
Rust
Q50 / 100
What is the Display trait?
Correct! Well done.
Incorrect.
The correct answer is B) A trait requiring fmt::Display implementation, enabling {} formatting with println!
B
Correct Answer
A trait requiring fmt::Display implementation, enabling {} formatting with println!
Explanation
impl fmt::Display for Point { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { write!(f, "({},{})", self.x, self.y) } }
Progress
50/100