pub trait CowOsStrUtils<'a> {
// Required methods
fn split_once(&self, sep: char) -> Option<(Cow<'a, OsStr>, Cow<'a, OsStr>)>;
fn to_str(&self, func: impl Fn(&str) -> &str) -> Option<Cow<'a, str>>;
}Required Methods§
fn split_once(&self, sep: char) -> Option<(Cow<'a, OsStr>, Cow<'a, OsStr>)>
fn to_str(&self, func: impl Fn(&str) -> &str) -> Option<Cow<'a, str>>
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.