Completed
How does Rust do it?
Class Central Classrooms beta
YouTube videos curated by Class Central.
Classroom Contents
How Not to Rely on Inheritance in Rust - Traits and Programming Patterns
Automatically move to the next video in the Classroom when playback concludes
- 1 Intro
- 2 How does Java do it?
- 3 How does C++ do it?
- 4 How does Rust do it?
- 5 Rust Traits
- 6 How to use Traits: dynamic dispatch
- 7 How to use Traits: static dispatch
- 8 Examples of traits
- 9 Associated types
- 10 Example Iterator
- 11 Returning complex types
- 12 Why can't I print a vector?
- 13 The orphan rule
- 14 Downcasting: Create a new trait
- 15 Auto traits
- 16 Conclusion