Function bytes
fn bytes<I, O, E1, E2, P>(parser: P) -> impl FnMut((I, usize)) -> crate::internal::IResult<(I, usize), O, E2>
where
E1: ParseError<I> + ErrorConvert<E2>,
E2: ParseError<(I, usize)>,
I: Input + Clone,
P: Parser<I, Output = O, Error = E1>
Counterpart to bits, bytes transforms its bit stream input into a byte slice for the underlying
parser, allowing byte-slice parsers to work on bit streams.
A partial byte remaining in the input will be ignored and the given parser will start parsing at the next full byte.
use ;
use rest;
use Error;
use IResult;
let input = &;
assert_eq!;