Type Alias utils::parser::ParseResult

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

Result type returned by Parser::parse.

Aliased Type§

enum ParseResult<'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