{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreiamd2mpe3gqkblx3rqw3mugg76hwc3zuvlbcops56jqur46vzpj3y",
"uri": "at://did:plc:ivbknywyskln22er3nkssdhl/app.bsky.feed.post/3mjl46dx6oui2"
},
"path": "/t/introduce-box-new-uninit-array-and-box-new-zeroed-array/24179#post_4",
"publishedAt": "2026-04-15T23:41:37.000Z",
"site": "https://internals.rust-lang.org",
"textContent": "Implementing `transpose()` on `Box<MaybeUninit<[T; N]>>` did also cross my mind, not sure why I dismissed the idea to be honest. Sounds perfectly reasonable to me.\n\nOn another note, someone in the Rust Discord pointed me to this, which works, but it's unsafe, which is clearly not ideal.\n\n\n let data = unsafe { Box::new_uninit().assume_init() };\n",
"title": "Introduce `Box::new_uninit_array` and `Box::new_zeroed_array`"
}