← Back to Topics
🎨
Advanced Trait System
Associated types, HRTBs, trait objects, and blanket implementations
5 Patterns
5 Interactive
0 Live Demos
Associated Types vs Generics
advanced
When to use which approach
🎮 Playground
traits
associated-types
+1
Higher-Ranked Trait Bounds
expert
for<'a> patterns and HRTBs
🎮 Playground
hrtb
lifetimes
+1
Trait Objects & Dynamic Dispatch
intermediate
Box<dyn Trait> patterns and vtables
🎮 Playground
dyn
dynamic-dispatch
+1
Blanket Implementations
advanced
Implementing traits for generic types
🎮 Playground
blanket
impl
+1
Orphan Rules & Newtype
intermediate
Working with external traits
🎮 Playground
orphan-rules
newtype
+1