{
  "$type": "site.standard.document",
  "bskyPostRef": {
    "cid": "bafyreihasu6linoamtoxllyvsncraadd5h3ghrns2oya5b3aevfvgdmgwi",
    "uri": "at://did:plc:ivbknywyskln22er3nkssdhl/app.bsky.feed.post/3mloa6ub6ore2"
  },
  "path": "/t/interiorassign-trait-a-b/24291?page=2#post_29",
  "publishedAt": "2026-05-12T15:06:34.000Z",
  "site": "https://internals.rust-lang.org",
  "textContent": "jrose:\n\n> I'll add to the general negative feeling here by pointing out that with RefCell this operation can _panic_ and so I might not want to use it anyway\n\nI agree. In hindsight I should have made it wrap the `try_borrow_mut` instead.\n\nI do like that I know this now:\n\nsteffahn:\n\n> `*data.ref_cell.borrow_mut() = Some(new_value);`\n\nWhich I was unaware of when I made the post. Preserving the left and right side of the equals was the main issue I had.\n\nI think what I might do instead though is just create a macro or use scripting because all I really want to do is abstract away a pattern that is going to be repeated thousands of times.",
  "title": "InteriorAssign trait { a := b }"
}