Skip to content

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`.

Where the book teaches it

Related terms

Iteratortrait