pub trait PathLike<'data>: Sealed {
// Required method
fn into_path_bytes(self) -> Cow<'data, [u8]>;
// Provided method
fn into_path(self) -> Cow<'data, Path> { ... }
}Expand description
Required Methods§
Sourcefn into_path_bytes(self) -> Cow<'data, [u8]>
fn into_path_bytes(self) -> Cow<'data, [u8]>
Convert this to a possibly owned sequence of bytes that’s guaranteed to uphold the same
guarantees as an OsStr.
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.