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.
Glossary: Software Design Patterns in Rust
Also written: interfaces
The methods code expects a value to have. In Rust a trait writes the interface down and the compiler checks it.