pub fn check<T>(res: IResult<Span, T>) -> Result<T, Self> {
        let (rest, value) = res.finish()?;
        if rest.fragment().is_empty() {
            Ok(value)
        } else {
            Err(ParseError::remaining(rest))
        }
    }
/// Check a nom result for errors.
///
/// This differs from a `From<nom::Err>` implementation in that an
/// `Ok` result with remaining unparsed data is also considered an
/// error.
Check a nom result for errors.
This differs from a `From` implementation in that an
`Ok` result with remaining unparsed data is also considered an
error.
Check a nom result for errors . This differs from a ` From ` implementation in that an ` Ok ` result with remaining unparsed data is also considered an error .
pub fn check<T>(res: IResult<Span, T>) -> Result<T, Self> {
        let (rest, value) = res.finish()?;
        if rest.fragment().is_empty() {
            Ok(value)
        } else {
            Err(ParseError::remaining(rest))
        }
    }
pub fn check < T > ( res : IResult < Span , T > ) -> Result < T , Self > { let ( rest , value ) = res . finish ( ) ? ; if rest . fragment ( ) . is_empty ( ) { Ok ( value ) } else { Err ( ParseError :: remaining ( rest ) ) } }
Check a nom result for errors.
Check a nom result for errors .
res
IResult<Span, T>
res
IResult<Span, T>