Function length_repeat
fn length_repeat<Input, Output, Accumulator, Count, Error, CountParser, ParseNext>(count: CountParser, parser: ParseNext) -> impl Parser<Input, Accumulator, Error>
where
Input: Stream,
Count: ToUsize,
Accumulator: Accumulate<Output>,
CountParser: Parser<Input, Count, Error>,
ParseNext: Parser<Input, Output, Error>,
Error: ParserError<Input>
Accumulate a length-prefixed sequence of values (TLV)
If the length represents token counts, see instead length_take
Example
#