CowOsStrUtils

Trait CowOsStrUtils 

Source
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§

Source

fn split_once(&self, sep: char) -> Option<(Cow<'a, OsStr>, Cow<'a, OsStr>)>

Source

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.

Implementations on Foreign Types§

Source§

impl<'a> CowOsStrUtils<'a> for Cow<'a, OsStr>

Source§

fn split_once(&self, sep: char) -> Option<(Cow<'a, OsStr>, Cow<'a, OsStr>)>

Source§

fn to_str(&self, func: impl Fn(&str) -> &str) -> Option<Cow<'a, str>>

Implementors§