Skip to content

Glossary: Software Design Patterns in Rust

Dependency inversion principle (DIP)

Also written: DIP, dependency inversion

The SOLID rule that high-level code shouldn't depend on low-level details. Both depend on a trait, and the detail is passed in.

Where the book teaches it

Related terms

SOLIDDependency injection