Type Alias ParseResult

Source
pub type ParseResult<O, I, T> = Result<(O, Consumed<State<I>>), Consumed<ParseError<T>>>;
Expand description

A type alias over the specific Result type used by parsers to indicate wether they were successful or not. O is the type that is output on success I is the specific stream type used in the parser T is the item type of I, this parameter will be removed once type declarations are allowed to have trait bounds

Aliased Type§

enum ParseResult<O, I, T> {
    Ok((O, Consumed<State<I>>)),
    Err(Consumed<ParseError<T>>),
}

Variants§

§1.0.0

Ok((O, Consumed<State<I>>))

Contains the success value

§1.0.0

Err(Consumed<ParseError<T>>)

Contains the error value