how-to-rust
how-to-rust copied to clipboard
Suggestion: The Typestate Pattern in Rust
This might not fall in line as nicely with the theme of "overcoming the borrow checker", but I quite like sharing this post with people to help them understand the builder pattern, and additional properties of the type system.
https://cliffle.com/blog/rust-typestate/
If it's aligned with the goals of this repo, I'll make a description and create a PR :)
I just read that the readme welcomes PRs, so I'll give that a go :100: