Function winnow::combinator::rest
source · pub fn rest<I, E: ParseError<I>>(
input: I
) -> IResult<I, <I as Stream>::Slice, E>where
I: Stream,
Expand description
Return the remaining input.
Example
use winnow::combinator::rest;
assert_eq!(rest::<_,Error<_>>("abc"), Ok(("", "abc")));
assert_eq!(rest::<_,Error<_>>(""), Ok(("", "")));