this post was submitted on 07 Sep 2024
74 points (97.4% liked)

Rust

5754 readers
60 users here now

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

!performance@programming.dev

Credits

  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

founded 1 year ago
MODERATORS
top 10 comments
sorted by: hot top controversial new old
[–] PlexSheep@infosec.pub 13 points 1 week ago (1 children)

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)

[–] gedhrel@lemmy.world 8 points 1 week ago (1 children)

That seems like quite a lot of booms.

[–] PlexSheep@infosec.pub 5 points 1 week ago

Return impl go boom