Overview
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore the fundamental concepts of Traits and Generics in Rust programming through this 32-minute video tutorial. Learn how to define Traits, create Generic input arguments for Rust structs, and utilize Trait Bounds to restrict Generic input types. Dive into practical examples of creating generic traits, implementing pet types and traits, and combining multiple traits. Gain insights into alternative syntax options and understand how these powerful constructs work together to streamline code writing in Rust. Access additional resources, including the official Rust documentation on Traits and Generics, to further enhance your understanding of these essential Rust language features.
Syllabus
Introduction
What is a trait
Creating a generic trait
Creating a pet type
Implementing a pet type
Implementing a pet trait
Combining traits
Alternative Syntax
Taught by
Trevor Sullivan