Skip to main content

AsStr

Trait AsStr 

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

    // Provided method
    fn as_grapheme_str(&self) -> GraphemeStr<'_> { ... }
}

Required Methods§

Source

fn as_str(&self) -> &str

Provided Methods§

Implementations on Foreign Types§

Source§

impl AsStr for str

Source§

fn as_str(&self) -> &str

Source§

impl AsStr for String

Source§

fn as_str(&self) -> &str

Source§

impl AsStr for CompactString

Source§

fn as_str(&self) -> &str

Implementors§