3 ms·
No, it's bits of valid syntax thrown together informally to express an idea. There is no `!:` in Rust, and that `for` quantification never applies to types or b
by Rusky 7y ago
No, it's bits of valid syntax thrown together informally to express an idea. There is no `!:` in Rust, and that `for` quantification never applies to types or bounds that way.
- withoutboats 7y ago(and the idea I was expressing was "shared references never under any circumstance implement the DerefMut trait")
- bascule 7y ago`for` used in a bound (in conjunction with a lifetime) is the syntax for Higher-Rank Trait Bounds (HRTB): https://doc.rust-lang.org/beta/nomicon/hrtb.html https://doc.rust-lang.org/beta/nomicon/hrtb.html
- Rusky 7y agoYes, but it's not used that way in this snippet...