Supertraits
Rust doesn't have "inheritance", but you can define a trait as being a superset of another trait. For example:
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
Rust doesn't have "inheritance", but you can define a trait as being a superset of another trait. For example: