Function nom::combinator::rest [−][src]
pub fn rest<T, E: ParseError<T>>(input: T) -> IResult<T, T, E> where
T: Slice<Range<usize>> + Slice<RangeFrom<usize>> + Slice<RangeTo<usize>>,
T: InputLength,
Return the remaining input
use nom::combinator::rest; assert_eq!(rest::<_,(_, ErrorKind)>("abc"), Ok(("", "abc"))); assert_eq!(rest::<_,(_, ErrorKind)>(""), Ok(("", "")));