Module nom::combinator

source ·
Expand description

general purpose combinators

Structs§

Functions§

  • succeeds if all the input has been consumed by its child parser
  • transforms Incomplete into Error
  • calls the parser if the condition is met
  • transforms an error to failure
  • creates a new parser from the output of the first parser, then apply that parser over the rest of the input
  • creates an iterator from input data and a parser
  • maps a function on the result of a parser
  • applies a function returning an Option over the result of a parser
  • applies a parser over the result of another one
  • applies a function returning a Result over the result of a parser
  • succeeds if the child parser returns an error
  • optional parser: will return None if not successful
  • tries to apply its parser without consuming the input
  • if the child parser was successful, return the consumed input as produced value
  • Return the remaining input
  • Return the length of the remaining input
  • returns the provided value if the child parser succeeds
  • returns the result of the child parser if it satisfies a verification function