News for hackers. Stuff that matters.
Re:Rust 1.100.0 by pasteleft on Thursday November 12, 2026 @09:55PM (#50477539)
I think they made it to reduce closure usage.

  vec.map(|x| !x);

  vec.map(bool::toggle);
Re:Rust 1.100.0 by adwn on Friday November 13, 2026 @01:59AM (#50479414)
No, these aren't equivalent: the second line mutates the iterated-over values, while the first doesn't. And the first line returns an iterator over bool, while the second returns an iterator over ().