Function rusticata_macros::combinator::flat_take [−][src]
pub fn flat_take<I, C, O, E: ParseError<I>, F>(
len: C,
parser: F
) -> impl Fn(I) -> IResult<I, O, E> where
I: InputTake + InputLength + InputIter,
C: ToUsize + Copy,
F: Fn(I) -> IResult<I, O, E>,
Expand description
Return a closure that takes len
bytes from input, and applies parser
.