{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreidktz6fcvs2lj4iraexpdq7zbweqyo7keql5zqaorvaj7ijpfwscm",
"uri": "at://did:plc:ivbknywyskln22er3nkssdhl/app.bsky.feed.post/3mgdm7yhsftr2"
},
"path": "/t/interior-mutability-and-safety-of-ownership-transfer-in-rust/24055#post_7",
"publishedAt": "2026-03-05T20:03:16.000Z",
"site": "https://internals.rust-lang.org",
"textContent": "quinedot:\n\n> No, `Freeze` does not guarantee there is no interior mutability in the type. It only guarantees there is no _shallow_ immutability in the inline values.\n\nIf i understand correctly this is enough here, as any data behind an indirection won't be copied by `ptr::read/write` and so won't be duplicated during the reallocation.",
"title": "Interior mutability and safety of ownership transfer in Rust"
}