Chapter 8
Traits & Generics
A trait defines functionality a particular type has and can share with other types. Generics allow writing zero-cost polymorphic functions.
Chapter 8
A trait defines functionality a particular type has and can share with other types. Generics allow writing zero-cost polymorphic functions.