pub trait OsStrExt {
// Required method
fn try_as_bytes(&self) -> Option<&[u8]>;
}
Expand description
Extended functionality for
OsStr
.
Required Methods§
Sourcefn try_as_bytes(&self) -> Option<&[u8]>
fn try_as_bytes(&self) -> Option<&[u8]>
Attempts to retrieve the underlying bytes of self
.