this post was submitted on 17 Jun 2025
12 points (100.0% liked)
Rust
7129 readers
8 users here now
Welcome to the Rust community! This is a place to discuss about the Rust programming language.
Wormhole
Credits
- The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
@capuccino An alternative is to not use T: Add<Output = T>, but to replace your usage of T, where it represents the output type, with <T as Add>::Output
I found it in the book. Is in advanced chapters, near the end, dang. Thank you for your time!