Traits

See Also: Trait Objects See Also: Object Safety

Per https://doc.rust-lang.org/rust-by-example/trait.html, a trait is a collection of methods defined for an unknown type: Self. They can access other methods declared in the same trait.

Q: Is a trait is type? A: Yes

Combine multiple traits to for a new trait