8

Generic associated types in Rust 1.65

 1 year ago
source link: https://lwn.net/Articles/912932/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Generic associated types in Rust 1.65 [LWN.net]

Want to work from anywhere? Browse Remote Jobs Now on Open Source JobHub
User: Password: | |

Generic associated types in Rust 1.65

[Posted October 28, 2022 by corbet]
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).

(Log in to post comments)

Copyright © 2022, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK