Trait std::os::unix::ffi::OsStringExt 1.0.0[−][src]
This is supported on Unix only.
Unix-specific extensions to OsString
.
Required Methods
fn from_vec(vec: Vec<u8>) -> Self
This is supported on Unix only.
Creates an OsString
from a byte vector.
Examples
use std::ffi::OsString; use std::os::unix::ffi::OsStringExt; let bytes = b"foo".to_vec(); let os_string = OsString::from_vec(bytes); assert_eq!(os_string.to_str(), Some("foo"));Run
fn into_vec(self) -> Vec<u8>
This is supported on Unix only.
Implementors
impl OsStringExt for OsString