image_blp::parser::types

Type Alias Parser

Source
pub type Parser<'a, T> = IResult<&'a [u8], T, Error<&'a [u8]>>;
Expand description

Binary parser for BLP format that produces Error when something went wrong

Aliased Type§

enum Parser<'a, T> {
    Ok((&'a [u8], T)),
    Err(Err<Error<&'a [u8]>>),
}

Variants§

§1.0.0

Ok((&'a [u8], T))

Contains the success value

§1.0.0

Err(Err<Error<&'a [u8]>>)

Contains the error value