Traits And Generics
Generic Data Types
- Generic Functions
- Generic Structs
- Generic Enums
- Performance Of Generics Monomorphization
Traits Defining Shared Behavior
- Defining A Trait
- Implementing A Trait On A Type
- Default Implementations
- Traits As Parameters And Return Types
- Trait Bounds And Where Clauses
- Using Traits
- Trait Objects And Dynamic Dispatch
- Generic Functions Vs Trait Objects Tradeoffs
- Reverseengineering Bounds From Type Requirements
Advanced Trait Features
- Associated Types
- Generic Traits Operator Overloading Prelude
- Buddy Traits How Randrandom Works
- Subtraits
- Static Methods
- Fully Qualified Method Calls
- Self In Traits
- Traits And Other Peoples Types Orphan Rule
- Using Default Implementations To Minimize Required Trait Methods
Standard Traits Familiarization
- Overview Of Common Standard Traits
Utility Traits Deep Dive
- Drop Trait
- Sized Trait
- Clone Trait
- Copy Trait
- Deref And Derefmut
- Default Trait
- Asref And Asmut
- Borrow And Borrowmut
- From And Into
- Toowned And Cow Clone On Write
Operator Overloading
- Arithmetic And Bitwise Operators
- Unary Operators
- Binary Operators
- Compound Assignment Operators
- Equality Tests Partialeq And Eq
- Ordered Comparisons Partialord And Ord
- Index And Indexmut
- Other Operators Drop Deref Etc