Could you borrow a bit?
Rust Internals [Unofficial]
May 15, 2026
Could there be a &mut self method on e.g. core u* integers that lets you borrow a bit as &mut bool, or does the layout of &bool prevent that, and if so could there be some other way to achieve a similar effect? (possibly introducing a new type like bit and returning &mut bit)
If you're curious about my use case, I'm trying to implement the IndexMut trait on a bitstring reference type.
Discussion in the ATmosphere