2015-08-30 22:06:10 +00:00
|
|
|
# Rust Design Patterns
|
|
|
|
|
|
|
|
An open source repository of design patterns and idioms in the Rust programming
|
|
|
|
language.
|
|
|
|
|
|
|
|
|
|
|
|
## Contents
|
|
|
|
|
|
|
|
[Introduction](intro.md)
|
|
|
|
|
|
|
|
### Idioms
|
|
|
|
|
2015-08-31 04:24:23 +00:00
|
|
|
* [Constructor](idioms/ctor.md)
|
2015-08-30 22:06:10 +00:00
|
|
|
|
|
|
|
### 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.
|