pub trait StrExt {
type Owned: Borrow<Self>;
// Required methods
fn is_valid_ident(&self) -> bool;
fn to_valid_ident(&self) -> Self::Owned;
}
Required Associated Types§
Required Methods§
fn is_valid_ident(&self) -> bool
fn to_valid_ident(&self) -> Self::Owned
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.