LeafResult

Type Alias LeafResult 

Source
pub type LeafResult<'i, T> = Result<(T, &'i [u8]), (ParseError, &'i [u8])>;
Expand description

Result type returned by Leaf::parse.

Contains the error information inline, unlike ParserResult.

Aliased Type§

pub enum LeafResult<'i, T> {
    Ok((T, &'i [u8])),
    Err((ParseError, &'i [u8])),
}

Variants§

§1.0.0

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

Contains the success value

§1.0.0

Err((ParseError, &'i [u8]))

Contains the error value