{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreib2m2xr2j74eci3zveybm3nhvfqy7y3yryis34zie62esgjos62ge",
"uri": "at://did:plc:ivbknywyskln22er3nkssdhl/app.bsky.feed.post/3mluamkfnlzd2"
},
"path": "/t/could-you-borrow-a-bit/24300#post_1",
"publishedAt": "2026-05-15T00:24:23.000Z",
"site": "https://internals.rust-lang.org",
"textContent": "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`)\n\nIf you're curious about my use case, I'm trying to implement the `IndexMut` trait on a bitstring reference type.",
"title": "Could you borrow a bit?"
}