Why does str implement AsRef<OsStr>?
I've read that OsStr stores characters in platform specific representations, which is not necessarily UTF-8 (e.g., on Windows it should be UCS-2). However, I also notice that str implements AsRef<OsStr>, which suggests the underlying bytes of str can be directly "viewed as" OsStr. How is this possible?