Skip to content

Glossary: Software Design Patterns in Rust

Interface segregation principle (ISP)

Also written: ISP, interface segregation

The SOLID rule that code shouldn't depend on methods it doesn't use, so keep traits small. USPS only needs a Quoter, not a Tracker.

Where the book teaches it

Related terms

SOLIDTrait