Skip to content

Glossary: Software Design Patterns in Rust

Rule of three

Write it once, notice the repeat the second time, and extract a shared version on the third.

Where the book teaches it

Related terms

Premature abstraction