Glossary: Software Design Patterns in Rust
Open/closed principle (OCP)
Also written: OCP, open/closed
The SOLID rule that code should be open for extension but closed for modification: add behavior with new code, such as a new `impl Rule`, instead of editing working code.