# Rust Design Patterns An open source repository of design patterns and idioms in the Rust programming language. ## Contents [Introduction](intro.md) ### Idioms * Constructor ### Design patterns * Builder * RAII ### Anti-patterns * Clone to satisfy the borrow checker * Deref polymorphism ## Contributing You should start with [the template](template.md). Copy it into the appropriate directory, edit it, and submit a PR. You might not want every section, and you might want to add extra sections. Correction and elaboration PRs are also very welcome.