Generic Types, Traits, and Lifetimes: #3: Validating References with Lifetimes (Part 1)

preview_player
Показать описание
Continuing further on exploring the 10th chapter of Rust lang book, here we talk about Traits in Rust. In this video we talk about: Traits as Parameters, Trait Bound Syntax, Specifying Multiple Trait Bounds with the + Syntax, Clearer Trait Bounds with where Clauses, Returning Types that Implement Traits and Using Trait Bounds to Conditionally Implement Methods.
More videos to follow...

Chapters:
0:00 - Intro to Lifetimes
1:47 - Validating references
3:41 - Preventing dangling references
6:38 - Generic lifetimes in functions
11:03 - Lifetime annotation syntax
12:46 - Lifetime annotations in fun. signature
15:25 - Outro

Рекомендации по теме