How Not to Rely on Inheritance in Rust - Traits and Programming Patterns

How Not to Rely on Inheritance in Rust - Traits and Programming Patterns

Rust via YouTube Direct link

How to use Traits: static dispatch

7 of 16

7 of 16

How to use Traits: static dispatch

Class Central Classrooms beta

YouTube playlists 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. 1 Intro
  2. 2 How does Java do it?
  3. 3 How does C++ do it?
  4. 4 How does Rust do it?
  5. 5 Rust Traits
  6. 6 How to use Traits: dynamic dispatch
  7. 7 How to use Traits: static dispatch
  8. 8 Examples of traits
  9. 9 Associated types
  10. 10 Example Iterator
  11. 11 Returning complex types
  12. 12 Why can't I print a vector?
  13. 13 The orphan rule
  14. 14 Downcasting: Create a new trait
  15. 15 Auto traits
  16. 16 Conclusion

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.