Trait sgx_tstd::os::unix::ffi::OsStrExt [−][src]
pub trait OsStrExt { fn from_bytes(slice: &[u8]) -> &Self; fn as_bytes(&self) -> &[u8]; }
Unix-specific extensions to OsStr
.
Required Methods
fn from_bytes(slice: &[u8]) -> &Self
Creates an OsStr
from a byte slice.
fn as_bytes(&self) -> &[u8]
Gets the underlying byte view of the OsStr
slice.
Implementors
impl OsStrExt for OsStr