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§

Source

type Internal: NomParseError<&'a str>

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§

Source§

impl<'a> ParsingError<'a> for FastError

Source§

type Internal = (&'a str, ErrorKind)

Source§

impl<'a> ParsingError<'a> for VerboseError

Source§

type Internal = VerboseError<&'a str>