Glossary: Software Design Patterns in Rust
Static dispatch
Also written: impl Trait
Accepting "anything with this trait" via `&impl Rule` or generics, where the compiler builds one copy of the function per type. It suits one known type.
Glossary: Software Design Patterns in Rust
Also written: impl Trait
Accepting "anything with this trait" via `&impl Rule` or generics, where the compiler builds one copy of the function per type. It suits one known type.