youtube image
From YouTube: Rust Linz, July 2021 - Rainer Stropek - Traits, not your grandparents' interfaces

Description

Developers who approach Rust from the viewpoint of other OO languages like TypeScript, C#, or Java frequently misinterpret Rust's traits as interfaces. That might be true to a certain extent, but on closer examination traits are much more powerful than you might think. In this demo-only session, Rainer Stropek starts by introducing you to the fundamentals of traits. You will see how to create your own ones, how to manually implement system traits, and how to auto-implement them. Once we covered those basics, Rainer dives deeper into unique features of traits. We will look at default implementations, trait parameters, trait objects, and trait bounds for generics.

Rainer on Twitter: https://twitter.com/rstropek
Rust Linz on Twitter: https://twitter.com/rustlinz