Share rust design patterns
There is the Rust Design Patterns book.
Now I am curious for more! Please share any patterns you have found are that are mentioned somewhere.
- Pre-Pooping Your Pants
- Rooting an Rc handle
- Precise closure capture clauses
- Iterating an over a Rc<Vec<T>>
- https://users.rust-lang.org/t/blog-post-series-rust-patterns/20080/10)
- Push Ifs Up And Fors Down
- If a Tree Falls in a Forest, Does It Overflow the Stack?
- Destructing trees safely and cheaply
- Builder Lite
- Caches In Rust
- Inline In Rust
- Newtype Index Pattern
- Typed Key Pattern
- Encapsulating Lifetime of the Field
Posted Mar 25, 2024, 8:42 AM UTC
17518