Dusty Pomerleau on Nostr: I don't really understand what #RustLang's Cell<T> looks like at runtime. Does it ...
I don't really understand what #RustLang's Cell<T> looks like at runtime. Does it still exist? Presumably it depends on T—something like: If T is on the heap, then Cell<T> is a pointer, but if T is Copy then Cell<T> is pretty much erased?
Published at
2024-07-01 06:59:26Event JSON
{
"id": "fbd190eefc4728e70e9eba85947172182471e74bf0e84d74f653027af26a9d2e",
"pubkey": "5bdfe5c3188a24f76efd37648930d8ada3e458961d03b2e0d62596d4f76e4778",
"created_at": 1719817166,
"kind": 1,
"tags": [
[
"t",
"rustlang"
],
[
"proxy",
"https://fosstodon.org/users/dpom/statuses/112709937841839908",
"activitypub"
]
],
"content": "I don't really understand what #RustLang's Cell\u003cT\u003e looks like at runtime. Does it still exist? Presumably it depends on T—something like: If T is on the heap, then Cell\u003cT\u003e is a pointer, but if T is Copy then Cell\u003cT\u003e is pretty much erased?",
"sig": "11435b07533d2741579a6cd3e1d87602fceb3cbd0803d2cb9548285a90d5d0333036511ebd3ca44c918104b8424c22c3a3f4a9851068583f2a4a9827179e86cc"
}