You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
patterns/README.md

565 B

Rust Design Patterns

An open source repository of design patterns and idioms in the Rust programming language.

Contents

Introduction

Idioms

  • Constructor

Design patterns

  • Builder
  • RAII

Anti-patterns

  • Clone to satisfy the borrow checker
  • Deref polymorphism

Contributing

You should start with the template. 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.