Function rest_len

fn rest_len<T, E: ParseError<T>>(input: T) -> IResult<T, usize, E>
where
    T: Input

Return the length of the remaining input.

# use nom::error::ErrorKind;
use nom::combinator::rest_len;
assert_eq!(rest_len::<_,(_, ErrorKind)>("abc"), Ok(("abc", 3)));
assert_eq!(rest_len::<_,(_, ErrorKind)>(""), Ok(("", 0)));