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.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".