pub fn rest<T, E>(input: T) -> Result<(T, T), Err<E>>where
E: ParseError<T>,
T: Input,
Expand description
Return the remaining input.
use nom::combinator::rest;
assert_eq!(rest::<_,(_, ErrorKind)>("abc"), Ok(("", "abc")));
assert_eq!(rest::<_,(_, ErrorKind)>(""), Ok(("", "")));