MENU

Fun & Interesting

Improve your Rust APIs with the type state pattern

Let's Get Rusty 98,920 2 years ago
Video Not Working? Fix It Now

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/generics_and_zero_sized_types Chapters: 0:00 Intro 0:28 Example overview 2:30 First solution 4:20 Second solution 8:13 Third solution 14:18 Outro

Comment