Re:Rust 1.100.0
by brabel on Friday November 13, 2026 @02:44AM
(#50479763)
My first thought was that this is useful when you need a lambda that does this, now you can use ::toggle
[ Parent
| on HN ]
Now I just need the integer types to gain in-place inc() and dec()
I don’t know how to feel about toggle returning neither old nor new value tho.
You could do `bool::not` before, but this is clearer and doesn't require imports.