Function nom8::combinator::rest
source · pub fn rest<T, E: ParseError<T>>(
input: T
) -> IResult<T, <T as IntoOutput>::Output, E>where
T: Slice<RangeFrom<usize>> + InputLength + IntoOutput,
Expand description
Return the remaining input.
use nom8::combinator::rest;
assert_eq!(rest::<_,(_, ErrorKind)>("abc"), Ok(("", "abc")));
assert_eq!(rest::<_,(_, ErrorKind)>(""), Ok(("", "")));