Skip to main content

Code

Trait Code 

Source
pub trait Code: Copy {
    // Required method
    fn code(self) -> &'static str;
}

Required Methods§

Source

fn code(self) -> &'static 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§