Error

Type Alias Error 

Source
pub type Error<'a> = Err<Error<Cow<'a, [u8]>>>;
Expand description

A parser error.

Aliased Type§

pub enum Error<'a> {
    Incomplete(Needed),
    Error(Error<Cow<'a, [u8]>>),
    Failure(Error<Cow<'a, [u8]>>),
}

Variants§

§

Incomplete(Needed)

There was not enough data

§

Error(Error<Cow<'a, [u8]>>)

The parser had an error (recoverable)

§

Failure(Error<Cow<'a, [u8]>>)

The parser had an unrecoverable error: we got to the right branch and we know other branches won’t work, so backtrack as fast as possible