{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreicj73l3t6vaen6dsjssxfmfgwlzavysussvxwqz4acckglyc7uvgm",
"uri": "at://did:plc:ivbknywyskln22er3nkssdhl/app.bsky.feed.post/3mliaocte62z2"
},
"path": "/t/core-path/24233#post_7",
"publishedAt": "2026-05-10T06:28:40.000Z",
"site": "https://internals.rust-lang.org",
"textContent": "`RelativePath<Sep: AsciiChar>` could be made platform independent fairly easily. A relative path is just (conceptually at least) an array of `OsStr` separated by a character. Most of the complexity in `Path` comes with having different types of root.\n\nThere is also the problem that Win32 allows both `/` and `\\` as separators but that could be worked around, either by `RelativePath` taking multiple separators or by it being an error on use in a Windows context (like null in `Path` is today).",
"title": "core::path::Path"
}