Module winnow::multi

source ·
Expand description

Combinators applying their child parser multiple times

Functions

  • Accumulate the output of a parser into a container, like Vec
  • Runs the embedded parser repeatedly, filling the given slice with results.
  • 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, calling g 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.
  • 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.
  • Accumulate the output of a parser into a container, like Vec
  • many0_countDeprecated
    Repeats the embedded parser, counting the results
  • Accumulate the output of a parser into a container, like Vec
  • many1_countDeprecated
    Runs the embedded parser, counting the results.
  • Repeats the embedded parser m..=n times
  • many_tillDeprecated
    WARNING: Deprecated, replaced with many_till0
  • Applies the parser f until the parser g produces a result.
  • Alternates between two parsers to produce a list of elements.
  • Alternates between two parsers to produce a list of elements until ErrMode::Backtrack.
  • Alternates between two parsers, merging the results (left associative)
  • Alternates between two parsers, merging the results (right associative)
  • separated_list0Deprecated
    WARNING: Deprecated, replaced with separated0 (note the parameter swap)
  • separated_list1Deprecated
    WARNING: Deprecated, replaced with separated1 (note the parameter swap)