pub trait CmdString:
'static
+ Debug
+ Clone
+ Default
+ Eq
+ Hash
+ Sealed{
type Str: ?Sized + ToOwned<Owned = Self> + AsRef<OsStr> + AsRef<Self::Str> + Eq + Hash + ToStringLossy;
// Required method
fn from_str(string: &str) -> &Self::Str;
}
Expand description
A string type that can be used to construct commands.
Required Associated Types§
Required Methods§
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.