trait

Also known as: traits, type class, type classes

A trait defines shared behavior that types can implement, similar to type classes in Haskell or interfaces in other languages.

See the Rust book.