rusticata_macros::combinator

Function flat_take

Source
pub fn flat_take<I, C, O, E: ParseError<I>, F>(
    len: C,
    parser: F,
) -> impl FnMut(I) -> IResult<I, O, E>
where I: InputTake + InputLength + InputIter, C: ToUsize + Copy, F: Parser<I, O, E>,
Expand description

Return a closure that takes len bytes from input, and applies parser.