logo
  • Search
  • Reddit Posts 🔥
  • Archive
  • GitHub

Share rust design patterns

195 points pitdicker 2024-03-25 13:25:04
View on Reddit ↗

There is the Rust Design Patterns book.

Now I am curious for more! Please share any patterns you have found or 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
© 2025 Query.rs, built by Folyd with ❤️❤️, see about page to learn more · meiguo.app · aiberm.com