CowStr

Trait CowStr 

Source
pub trait CowStr {
    // Required method
    fn cow_str(&self) -> Cow<'_, str>;
}
Expand description

Converts itself into a std::borrow::Cow<str>. It’s used to call print_with_style which requires an &str.

Required Methods§

Source

fn cow_str(&self) -> Cow<'_, str>

Implementations on Foreign Types§

Source§

impl CowStr for &str

Source§

fn cow_str(&self) -> Cow<'_, str>

Source§

impl CowStr for (char, PathBuf)

Source§

fn cow_str(&self) -> Cow<'_, str>

Source§

impl CowStr for String

Source§

fn cow_str(&self) -> Cow<'_, str>

Source§

impl CowStr for PathBuf

Source§

fn cow_str(&self) -> Cow<'_, str>

Source§

impl CowStr for Entry

Source§

fn cow_str(&self) -> Cow<'_, str>

Implementors§