[−][src]Module nom::multi
Combinators applying their child parser multiple times
Functions
count | Runs the embedded parser a specified number
of times. Returns the results in a |
fill | Runs the embedded parser repeatedly, filling the given slice with results. This parser fails if the input runs out before the given slice is full. |
fold_many0 | Applies a parser until it fails and accumulates the results using a given function and initial value. |
fold_many1 | Applies a parser until it fails and accumulates the results using a given function and initial value. Fails if the embedded parser does not succeed at least once. |
fold_many_m_n | Applies a parser |
length_count | Gets a number from the first parser, then applies the second parser that many times. Arguments |
length_data | Gets a number from the parser and returns a
subslice of the input of that size.
If the parser returns |
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 |
many0 | Repeats the embedded parser until it fails
and returns the results in a |
many0_count | Repeats the embedded parser until it fails and returns the number of successful iterations. |
many1 | Runs the embedded parser until it fails and
returns the results in a |
many1_count | Repeats the embedded parser until it fails and returns the number of successful iterations. Fails if the embedded parser does not succeed at least once. |
many_m_n | Repeats the embedded parser |
many_till | Applies the parser |
separated_list0 | Alternates between two parsers to produce a list of elements. |
separated_list1 | Alternates between two parsers to produce a list of elements. Fails if the element parser does not produce at least one element. |