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<'a> AsStr for &'a str

source§

fn as_str(&self) -> &str

source§

impl<T: AsStr + AsBytes, X> AsStr for LocatedSpan<T, X>

source§

fn as_str(&self) -> &str

Implementors§