ToStr

Trait ToStr 

Source
pub trait ToStr {
    // Required method
    fn to_str(&self) -> Str<'_>;
}
Expand description

Convert a reference to a Str.

Required Methods§

Source

fn to_str(&self) -> Str<'_>

Perform the conversion.

Implementations on Foreign Types§

Source§

impl ToStr for str

Source§

fn to_str(&self) -> Str<'_>

Source§

impl ToStr for Box<str>

Source§

fn to_str(&self) -> Str<'_>

Source§

impl ToStr for String

Source§

fn to_str(&self) -> Str<'_>

Source§

impl ToStr for Arc<str>

Source§

fn to_str(&self) -> Str<'_>

Source§

impl<T: ToStr + ?Sized> ToStr for &T

Source§

fn to_str(&self) -> Str<'_>

Implementors§

Source§

impl<'k> ToStr for Str<'k>