AsStr

Trait AsStr 

Source
pub trait AsStr {
    // Required method
    fn as_str(&self) -> &str;
}

Required Methods§

Source

fn as_str(&self) -> &str

Implementations on Foreign Types§

Source§

impl AsStr for &str

Source§

fn as_str(&self) -> &str

Source§

impl AsStr for Cow<'_, str>

Source§

fn as_str(&self) -> &str

Source§

impl AsStr for String

Source§

fn as_str(&self) -> &str

Source§

impl AsStr for Regex

Source§

fn as_str(&self) -> &str

Source§

impl<T: AsStr> AsStr for LazyLock<T>

Source§

fn as_str(&self) -> &str

Source§

impl<T: AsStr> AsStr for Lazy<T>

Source§

fn as_str(&self) -> &str

Implementors§