0/16 уроков (0%)
– из 16
How Not to Rely on Inheritance in Rust - Traits and Programming Patterns
YouTube·Rust
Explore Rust's approach to inheritance and object-oriented programming in this 44-minute conference talk by Valentin Tolmer. Dive into the concept of Traits as an alternative to traditional inheritance, learning how to implement common programming patterns using this powerful Rust feature. Discover the differences between dynamic and static dispatch, understand associated types, and examine practical examples like the Iterator trait. Gain insights into complex topics such as returning complex types, the orphan rule, downcasting, and auto traits. Follow along with the provided slides to enhance your understanding of Rust's unique approach to code organization and reuse.