{
  "$type": "site.standard.document",
  "bskyPostRef": {
    "cid": "bafyreiaxihssq75anrr5rmdhrg7eivyycpalwjfipnawebsb6hrl3wsghm",
    "uri": "at://did:plc:ivbknywyskln22er3nkssdhl/app.bsky.feed.post/3mmtx7xbk3pn2"
  },
  "path": "/t/pre-rfc-guarantee-that-pointers-to-osstr-has-the-same-layout-as-pointers-to-str-u8/24354#post_5",
  "publishedAt": "2026-05-27T15:13:29.000Z",
  "site": "https://internals.rust-lang.org",
  "textContent": "I could maybe imagine storing a bit or two that says if it's known to be valid UTF-8 or not (allowing to skip checks in some cases). I don't think std will ever do anything with locales, at least that seems to be against the current philosophy.",
  "title": "Pre-RFC: Guarantee that pointers to `OsStr` has the same layout as pointers to `str`/`[u8]`"
}