os_string_to_vec

Function os_string_to_vec 

Source
pub fn os_string_to_vec(s: OsString) -> UResult<Vec<u8>>
Expand description

Converts an OsString into a Vec<u8>, 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.