Code

Trait Code 

Source
pub trait Code:
    Copy
    + Debug
    + Default
    + SupportedType {
    const COMMAND_DOC: &'static str;

    // Provided method
    fn default_low_values() -> [Self; 128] { ... }
}

Required Associated Constants§

Source

const COMMAND_DOC: &'static 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.

Implementations on Foreign Types§

Source§

impl Code for CatCode

Source§

const COMMAND_DOC: &'static str = "Get or set a cat code register"

Source§

fn default_low_values() -> [Self; 128]

Source§

impl Code for MathCode

Source§

const COMMAND_DOC: &'static str = "Get or set a math code register"

Implementors§