{
  "$type": "site.standard.document",
  "bskyPostRef": {
    "cid": "bafyreigkipb5z7immwbgn2zgv7cxoaqglyhnsoyhu6fmd523eeokuabucu",
    "uri": "at://did:plc:ivbknywyskln22er3nkssdhl/app.bsky.feed.post/3mka3mrjcatz2"
  },
  "path": "/t/could-collections-hypothetically-store-keys-and-values-inline/24195#post_2",
  "publishedAt": "2026-04-24T06:39:03.000Z",
  "site": "https://internals.rust-lang.org",
  "textContent": "robofinch:\n\n> Or is there some reason I'm missing that already prevents `std::collections` data structures from storing values and (if applicable) keys inline, _even_ hypothetically? In other words, can `unsafe` code **stably** and soundly use e.g. a `HashMap` as backing data for self-references to keys and values?\n\nThat's a libs-api question, not a UCG question (so you put this in the wrong section of this forum). And the answer is no, you can't rely on anything that's not explicitly documented.",
  "title": "Could collections hypothetically store keys and values inline?"
}