Trait LazyStr

Source
pub trait LazyStr {
    // Required method
    fn to_str<'a>(self) -> Cow<'a, str>;
}

Required Methods§

Source

fn to_str<'a>(self) -> Cow<'a, str>

Implementations on Foreign Types§

Source§

impl LazyStr for &'static str

Source§

fn to_str<'a>(self) -> Cow<'a, str>

Source§

impl LazyStr for String

Source§

fn to_str<'a>(self) -> Cow<'a, str>

Implementors§

Source§

impl<F: FnOnce() -> String> LazyStr for F