pub type ParseError<S> = Errors<<S as StreamOnce>::Token, <S as StreamOnce>::Range, <S as StreamOnce>::Position>;
Expand description
Convenience alias over Errors
for StreamOnce
types which makes it possible to specify the
Errors
type from a StreamOnce
by writing ParseError<Input>
instead of Errors<Input::Token, Input::Range, Input::Position>
Aliased Type§
struct ParseError<S> {
pub position: <S as StreamOnce>::Position,
pub errors: Vec<Error<<S as StreamOnce>::Token, <S as StreamOnce>::Range>>,
}
Fields§
§position: <S as StreamOnce>::Position
The position where the error occurred
errors: Vec<Error<<S as StreamOnce>::Token, <S as StreamOnce>::Range>>
A vector containing specific information on what errors occurred at position
. Usually
a fully formed message contains one Unexpected
error and one or more Expected
errors.
Message
and Other
may also appear (combine
never generates these errors on its own)
and may warrant custom handling.