BerResult

Type Alias 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§

pub 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

Layout§

Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.