{
  "$type": "site.standard.document",
  "bskyPostRef": {
    "cid": "bafyreiclieriqubetkd3z7cqy4qlj24zpypipd5xr4ks74zu6tpscsqy3a",
    "uri": "at://did:plc:ivbknywyskln22er3nkssdhl/app.bsky.feed.post/3mjp3v2yqn4n2"
  },
  "path": "/t/t-sort-by-index-and-t-sort-by-key-and-index/24172#post_20",
  "publishedAt": "2026-04-17T12:44:08.000Z",
  "site": "https://internals.rust-lang.org",
  "textContent": "Maybe if we can somehow type erase other slices and pass their reborrows as an array into sort, it may run `assume_unchecked` before calling the closure and pass the reborrow to the closure too?\n\nType erasure is to be able to place them into one array, while still allowing swaps.",
  "title": "`<[T]>::sort_by_index` and `<[T]>::sort_by_key_and_index`"
}