Trait Code

Source
pub trait Code:
    Copy
    + Display
    + Debug
    + Eq {
    const NOM_ERROR: Self;
}
Expand description

Parser error code.

Required Associated Constants§

Source

const NOM_ERROR: Self

Default error code for nom-errors.

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§

Source§

impl Code for ExCode

Source§

const NOM_ERROR: Self = Self::ExNomError