The Better Alternative to Lifetime GATs - Sabrina Jewson
Update (2022-05-30): danielhenrymantilla recently released a crate, nougat, which provides a proc macro that allows you to use the technique presented in this article with the same syntax as regular GATs. I encourage you to check it out!
The Better Alternative to Lifetime GATs - Sabrina Jewson The Better Alternative to Lifetime GATs 2022-05-01 (updated 2022-05-30 ) Update (2022-05-30): danielhenrymantilla recently released a crate, nougat , which provides a proc macro that allows you to use the technique presented in this article with the same syntax as regular GATs. I encourage you to check it out! Where real GATs fall short GATs are an unstable feature of Rust, likely to be stabilized in the next few versions, that allow you to add generic parameters on associated types in traits. The motivating example for this feature is t
related reading
- A half-hour to learn Rustfasterthanli.me
- Rust Language Cheat Sheetcheats.rs
- Validating References with Lifetimes - The Rust Programming Languagedoc.rust-lang.org
- Rewriting Bun in Rust | Bun Blogbun.com
- Defining Shared Behavior with Traits - The Rust Programming Languagedoc.rust-lang.org
- Rust Iterator Cheat Sheetdanielkeep.github.io
- Many modes: a GATs pattern · baby stepssmallcultfollowing.com
- Variance - Rust Compiler Development Guiderustc-dev-guide.rust-lang.org
- References and Borrowing - The Rust Programming Languagedoc.rust-lang.org
- Generic Types, Traits, and Lifetimes - The Rust Programming Languagedoc.rust-lang.org
- Announcing Rust 1.85.0 and Rust 2024 | Rust Blogblog.rust-lang.org
- Summary - Rust for C-Programmersrust-for-c-programmers.com