Lesson 21 of 25 · +130 xp

Trait

Like interface.

Explained simply

Your task

Write trait Greet { fn hi(&self); }

trait.rust
← Back