Перейти к содержимому

#30 Traits in Rust (Part 3)

Vishal

0:00 / 0:00

#30 Traits in Rust (Part 3)

20 просмотров · 13 дн. назад
Vishal
28 подписчиков
20 просмотров · 13 дн. назад
In this video, I continue the Rust Book (Chapter 10.2) and cover everything from "Using Traits as Parameters" onward. What we cover: impl Trait syntax for function parameters Trait bound syntax and when it differs from impl Trait Multiple trait bounds with + Cleaner signatures with where clauses Returning types that implement traits (and why you can't return two different types) Conditionally implementing methods with trait bounds Blanket implementations (e.g. ToString for T: Display) Docs: https://doc.rust-lang.org/book/ch10-0... Portfolio: https://vkgeed.in #rust #rustlang #rustprogramming #traits #learnrust #apexcompiler