Trait Code

Source
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§

Source

fn is_valid<S>(s: S) -> bool
where S: AsRef<str>,

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.

Implementors§