pub trait StringWrapper:
Borrow<String>
+ Clone
+ Eq
+ From<String>
+ Hash {
// Required methods
fn into_owned(self) -> String;
fn as_str(&self) -> &str;
}Expand description
An interface for any Cloneable wrapper around a String.
Required Methods§
Sourcefn into_owned(self) -> String
fn into_owned(self) -> String
Unwrap to an owned String.
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.