pub fn disallow_leftover<I, O, E>(
result: IResult<I, O, Error<ParserErrorKind>>,
) -> Result<O, E>where
I: ErrorInput,
E: From<SyntaxError<O>>,
Expand description
If parsing was successful but there is leftover input, returns a SyntaxError::Leftover
containing the output.
See also LeftoverError
.