use std::borrow::Cow;
pub trait IntoOwnedString {
fn into_owned_string(self) -> String;
}
impl IntoOwnedString for &str {
fn into_owned_string(self) -> String {
self.to_owned()
}
}
impl IntoOwnedString for Cow<'_, str> {
fn into_owned_string(self) -> String {
self.into_owned()
}
}