{
  "$type": "site.standard.document",
  "bskyPostRef": {
    "cid": "bafyreifps4jtrwk5qivvstjwfd7cn56kgeun2vhxrvyuv4j7zt77376yg4",
    "uri": "at://did:plc:ivbknywyskln22er3nkssdhl/app.bsky.feed.post/3mgdfjt2xy3e2"
  },
  "path": "/t/interior-mutability-and-safety-of-ownership-transfer-in-rust/24055#post_3",
  "publishedAt": "2026-03-05T15:22:17.000Z",
  "site": "https://internals.rust-lang.org",
  "textContent": "I think this is tangentially related, but I have wanted a way to give out \"read halves\" of, say, an `RwLock<T>` that can only lock for reading rather than being forced to give full access to anything needing any access. The ability to give out such limited accessors to shared state would be one way to do this.\n\nHowever, I also question the sensibility of putting atomics or other mutable shared state inside of a `ConcurrentMap`; if you want to write, get write access.",
  "title": "Interior mutability and safety of ownership transfer in Rust"
}