1use std::borrow::Cow; 2 3pub trait CommonStrings { 4 fn to_str(&self) -> &str; 5 6 fn into_string(self) -> String; 7 8 fn into_cow(self) -> Cow<'static, str>; 9 10 fn from_cow(v: Cow<'_, str>) -> Self; 11}