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>>),
}