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§
fn to_str(&self) -> &str
fn into_string(self) -> String
fn into_cow(self) -> Cow<'static, str>
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.