Glossary: Rust Beyond the Basics
associated type
Also written: associated types
A type that a trait leaves for each implementation to choose, such as `Item` in `Iterator`. It is referred to as `Self::Item`.
Glossary: Rust Beyond the Basics
Also written: associated types
A type that a trait leaves for each implementation to choose, such as `Item` in `Iterator`. It is referred to as `Self::Item`.