Uploaded July 2024 | Updated September 2026, 1 week ago
Rust Open Source project: rustcrab.com
All the lessons: youtube.com/watch?v=R33h77nrMqc&list=PLPoSdR46FgI412aItyJhj2bF66cudB6Qs
In this video, we dive deep into the concept of traits in Rust, a crucial part of the language's type system that allows for code reuse.
Traits are a concept similar to Interfaces, with some differences.
0:00 Intro. What are "Traits" in Rust?
0:40 Defining a Trait
1:37 Implementing a Trait on a Type
4:44 Default Implementation of a Trait
6:33 Multiple Methods for the same Trait
8:40 Traits as Parameters and Trait Bound Syntax
12:15 Clearer Trait Bounds with where Clauses
14:08 Returning Types that Implement Traits
15:26 Using Trait Bounds to Conditionally Implement Methods
16:37 Conditionally Implementhing Methods for a Generic Type
ALL THE LINKS HERE: francescociulla.com
Rust Open Source project: rustcrab.com
All the lessons: youtube.com/watch?v=R33h77nrMqc&list=PLPoSdR46FgI412aItyJhj2bF66cudB6Qs
In this video, we dive deep into the concept of traits in Rust, a crucial part of the language's type system that allows for code reuse.
Traits are a concept similar to Interfaces, with some differences.
0:00 Intro. What are "Traits" in Rust?
0:40 Defining a Trait
1:37 Implementing a Trait on a Type
4:44 Default Implementation of a Trait
6:33 Multiple Methods for the same Trait
8:40 Traits as Parameters and Trait Bound Syntax
12:15 Clearer Trait Bounds with where Clauses
14:08 Returning Types that Implement Traits
15:26 Using Trait Bounds to Conditionally Implement Methods
16:37 Conditionally Implementhing Methods for a Generic Type
ALL THE LINKS HERE: francescociulla.com





