pub trait Code<T>:
Clone
+ Debug
+ Display
+ FromStr
+ Into<T>
+ PartialEq
+ Eq
+ Hash {
// Provided method
fn is_valid<S>(s: S) -> bool
where S: AsRef<str> { ... }
}
Provided 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.