pub fn os_string_from_vec(vec: Vec<u8>) -> UResult<OsString>Expand description
Converts a Vec<u8> into an OsString, parsing as UTF-8 on non-unix platforms.
This always succeeds on unix platforms, and fails on other platforms if the bytes can’t be parsed as UTF-8.