Lesson 22 of 50
rustImplementing Traits
15 minutes
Course progress44%
Implementing Traits
You can implement multiple traits for a type.
use std::fmt;
struct Point {
x: i32,
y: i32,
}
impl fmt::Display for Point {
(&, f: & fmt::Formatter) fmt:: {
(f, \