Skip to content

Glossary: Software Design Patterns in Rust

Interface

Also written: interfaces

The methods code expects a value to have. In Rust a trait writes the interface down and the compiler checks it.

Where the book teaches it

Related terms

TraitInterface segregation principle (ISP)