Cuong Le

Cuong Le

Home
Archive
About
Inside Rust's std and parking_lot mutexes - who wins?
A teardown of Rust's mutex internals plus real benchmarks so you know when to choose std or parking_lot.
Oct 30 • 
Cuong Le

September 2025

Level Up your Rust pattern matching
Rust’s pattern matching feels simple enough: match on enums, destructure tuples, handle Option and Result.
Sep 29 • 
Cuong Le
The Hidden Rules Behind Rust Functions & Closures
Demystifying fn, Fn, FnMut, and FnOnce from everyday usage to compiler magic under the hood
Sep 10 • 
Cuong Le

August 2025

If you aren't amazed by Rust enum, you don't know its power
Every time I explain Rust's enums to someone new, I get the same reaction: "Wait… enums can do that?"
Aug 27 • 
Cuong Le
Constructor Best Practices in Rust
Constructor patterns every serious Rustacean should master to stop looking like a beginner.
Aug 18 • 
Cuong Le
This Send/Sync Secret Separates Professional From Amateur Rust Developers
2 Months of Banging My Head Against Send/Sync, Explained in One Coffee Break
Aug 6 • 
Cuong Le

July 2025

Unlock 100% Coverage - Mock Your Rust Unit Tests the Right Way
The essential mocking pattern every Rustacean should keep in their toolbox.
Jul 26 • 
Cuong Le
String vs str in Rust: The Only Guide You'll Ever Need
Never Be Confused by String and str Again
Jul 19 • 
Cuong Le
© 2025 Cuong Le
Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture