Trait CommonStrings

Source
pub trait CommonStrings {
    // Required methods
    fn to_str(&self) -> &str;
    fn into_string(self) -> String;
    fn into_cow(self) -> Cow<'static, str>;
    fn from_cow(v: Cow<'_, str>) -> Self;
}

Required Methods§

Source

fn to_str(&self) -> &str

Source

fn into_string(self) -> String

Source

fn into_cow(self) -> Cow<'static, str>

Source

fn from_cow(v: Cow<'_, str>) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§