ParsingError

Trait ParsingError 

Source
pub trait ParsingError<'a>: Sealed {
    type Internal: NomParseError<&'a str>;

    // Required method
    fn to_error(input: &str, err: Self::Internal) -> ParseError;
}
Expand description

Implemented by types which can be used to specify the error strategy the parsers should use.

Required Associated Types§

Required Methods§

Source

fn to_error(input: &str, err: Self::Internal) -> ParseError

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§