Skip to main content

Code

Trait Code 

Source
pub trait Code:
    Clone
    + Debug
    + Display
    + FromStr
    + AsRef<str>
    + PartialEq
    + Eq
    + Hash { }
Expand description

Helper trait to ensure that some other traits are implemented.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§