ParseResult

Type Alias ParseResult 

Source
pub type ParseResult<'a, T> = Result<(usize, T, &'a str), ParseError>;
Expand description

A helper for the result of parsing. Holds a tuple of the index of the found result, the type parsed as well as the remaining unparsed string

Aliased Type§

pub enum ParseResult<'a, T> {
    Ok((usize, T, &'a str)),
    Err(ParseError),
}

Variants§

§1.0.0

Ok((usize, T, &'a str))

Contains the success value

§1.0.0

Err(ParseError)

Contains the error value