u/didave31in r/rust • Recommends
On “Design pattern/guidelines to architecture Rust code”
Recently I came to realize the advantages of the type system and the borrow checker and that they really seem to set Rust apart from other languages.
Four inspiring resources + Bonus Links:
1. Rust State Design Pattern
link to this video
2. Type-Driven API Design in Rust
link to this video
3. The Typestate Pattern in Rust
http://cliffle.com/blog/rust-typestate/
4. Compile-Time Social Coordination
link to this video
**** Bonus (Yet to read them) ****
a. https://willcrichton.net/rust-api-type-patterns/introduction.html
b.
https://rust-lang.github.io/api-guidelines/type-safety.html
c.
https://rust-unofficial.github.io/patterns/patterns/behavioural/newtype.html
d.
https://doc.rust-lang.org/embedded-book/static-guara…