Function rest_len
fn rest_len<Input, Error>(input: &mut Input) -> Result<usize, Error>
where
Input: Stream,
Error: ParserError<Input>
Return the length of the remaining input.
Note: this does not advance the Stream
Effective Signature
Assuming you are parsing a &str [Stream]:
# use *;;
#
Example
# use *;
# use ContextError;
use rest_len;
assert_eq!;
assert_eq!;