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

Improve your Rust APIs with the type state pattern

Let's Get Rusty

0:00 / 0:00

Improve your Rust APIs with the type state pattern

119 307 просмотров · 3 года назад
Let's Get Rusty
173 тыс. подписчиков
119 307 просмотров · 3 года назад
Join our Rust Live Accelerator waitlist (free Rust Job-Ready Roadmap inside): https://letsgetrusty.com/join Let’s Get Rusty is the #1 Rust education & career development platform for engineers who want real-world skills and results. We combine a structured curriculum, industry-grade projects, expert review and feedback, and our Rust recruiter network — to help you master Rust and get hired. · Today I'm teaching you how to build Rust APIs that are impossible to misuse by taking advantage of generics and zero-sized types! FREE Rust Cheat Sheet: https://letsgetrusty.com/cheatsheet Code: https://github.com/letsgetrusty/gener... Chapters: 0:00 Intro 0:28 Example overview 2:30 First solution 4:20 Second solution 8:13 Third solution 14:18 Outro