Expand description
Combinators applying their child parser multiple times
Structs§
- Parser implementation for the count combinator
- Parser implementation for the fill combinator
- Parser implementation for the fold combinator
- Parser implementation for the fold_many0 combinator
- Parser implementation for the fold_many1 combinator
- Parser implementation for the fold_many_m_n combinator
- Parser implementation for the length_count combinator
- Parser implementation for the length_value combinator
- Parser implementation for the many combinator
- Parser implementation for the many0 combinator
- Parser implementation for the many0_count combinator
- Parser implementation for the many1 combinator
- Parser implementation for the many1_count combinator
- Parser implementation for the many_m_n combinator
- Parser implementation for the many_till combinator
- Parser implementation for the separated_list0 combinator
- Parser implementation for the separated_list1 combinator
Functions§
- Runs the embedded parser
count
times, gathering the results in aVec
- Runs the embedded parser repeatedly, filling the given slice with results.
- Applies a parser and accumulates the results using a given function and initial value. Fails if the amount of time the embedded parser is run is not within the specified range.
- Repeats the embedded parser, calling
g
to gather the results. - Repeats the embedded parser, calling
g
to gather the results. - Repeats the embedded parser
m..=n
times, callingg
to gather the results - Gets a number from the first parser, then applies the second parser that many times.
- Gets a number from the parser and returns a subslice of the input of that size. If the parser returns
Incomplete
,length_data
will return an error. - Gets a number from the first parser, takes a subslice of the input of that size, then applies the second parser on that subslice. If the second parser returns
Incomplete
,length_value
will return an error. - Repeats the embedded parser and collects the results in a type implementing
Extend + Default
. Fails if the amount of time the embedded parser is run is not within the specified range. - Repeats the embedded parser, gathering the results in a
Vec
. - Repeats the embedded parser, counting the results
- Runs the embedded parser, gathering the results in a
Vec
. - Runs the embedded parser, counting the results.
- Repeats the embedded parser
m..=n
times - Applies the parser
f
until the parserg
produces a result. - Alternates between two parsers to produce a list of elements.
- Alternates between two parsers to produce a list of elements until
Err::Error
.