Expand description
Combinators applying their child parser multiple times
Functionsยง
- count
- Runs the embedded parser
count
times, gathering the results in aVec
- fill
- Runs the embedded parser repeatedly, filling the given slice with results.
- fold_
many0 - Repeats the embedded parser, calling
g
to gather the results. - fold_
many1 - Repeats the embedded parser, calling
g
to gather the results. - fold_
many_ m_ n - Repeats the embedded parser
m..=n
times, callingg
to gather the results - length_
count - Gets a number from the first parser, then applies the second parser that many times.
- length_
data - 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. - length_
value - 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. - many0
- Repeats the embedded parser, gathering the results in a
Vec
. - many0_
count - Repeats the embedded parser, counting the results
- many1
- Runs the embedded parser, gathering the results in a
Vec
. - many1_
count - Runs the embedded parser, counting the results.
- many_
m_ n - Repeats the embedded parser
m..=n
times - many_
till - Applies the parser
f
until the parserg
produces a result. - separated_
list0 - Alternates between two parsers to produce a list of elements.
- separated_
list1 - Alternates between two parsers to produce a list of elements until
Err::Error
.