Type Alias der_parser::error::BerResult

source ·
pub type BerResult<'a, O = BerObject<'a>> = IResult<&'a [u8], O, BerError>;
Expand description

Holds the result of parsing functions

O is the output type, and defaults to a BerObject.

Note that this type is also a Result, so usual functions (map, unwrap etc.) are available.

This type is a wrapper around nom’s IResult type

Aliased Type§

enum BerResult<'a, O = BerObject<'a>> {
    Ok((&'a [u8], O)),
    Err(Err<Error>),
}

Variants§

§1.0.0

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

Contains the success value

§1.0.0

Err(Err<Error>)

Contains the error value