Generic associated types in Rust 1.65

Post Syndicated from original https://lwn.net/Articles/912932/

The Rust Types Team announces
that the long-awaited generic associated types feature will be stable in Rust 1.65.

At its core, generic associated types allow you to have generics
(type, lifetime, or const) on associated types. Note that this is
really just rounding out the places where you can put generics: for
example, you can already have generics on freestanding type aliases
and on functions in traits. Now you can just have generics on type
aliases in traits (which we just call associated types).