76
Changes to impl Trait in Rust 2024
(blog.rust-lang.org)
Welcome to the Rust community! This is a place to discuss about the Rust programming language.
Credits
Reading this, the return impl complexity seemed insane.
Then, by accident, i programmed on a pet project until 4 in the night, and boom, I've had the exact problem they're solving. Remembered that I usually need an extra lifetime in the impl definition, and boom, it worked. Doesn't seem so insane anymore.
(Was working on a little Webservice with warp, and returning their filters from a function)
That seems like quite a lot of booms.
Return impl go boom