YoVDO

Traits and Types in Rust - PDXRust May 2016

Offered By: Rust via YouTube

Tags

Rust Courses Type System Courses Type Inference Courses

Course Description

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore Rust's powerful type system and traits in this 44-minute conference talk from PDXRust. Dive into basic types, inference, and manual type declaration before examining built-in types, including numeric types. Learn about methods for types, constructors, and implementing traits. Discover how to create and use custom traits while understanding trait coherence rules. Gain insights into useful types from the standard library such as Option, Result, and HashMap. Master essential traits like From/Into, FromStr, Debug, and Display. By the end, grasp how to implement custom traits and leverage Rust's derive functionality for debugging.

Syllabus

Intro
Rust's type system is worth knowing
Basic types - Inference
Basic types - Manual
Built-in Types An Incomplete list
Numeric types
A toy
Methods for types
Constructors
Implementing traits
It works!
Implementing custom traits (cont.)
Using custom traits
Trait coherence rules (cont.)
Useful types from the stdlib
Option
Result
HashMap
Useful traits from the stdlib
From / Into (cont.)
FromStr
Implementing Debug and Display
Implementing Display
Deriving Debug


Taught by

Rust

Related Courses

The Rust Programming Language
Udemy
Rust for Beginners: Learn Rust in 4 Hours
Udemy
Rust For Undergrads
Udemy
Take your first steps with Rust
Microsoft via Microsoft Learn
Rust Fundamentals
Pluralsight