Module bpaf::parsers

source ·
Expand description

This module exposes parsers that accept further configuration with builder pattern

In most cases you won’t be using those names directly, they’re only listed here to provide access to documentation

Structs

  • A named thing used to create flag, switch or argument
  • Consume an arbitrary value that satisfies a condition, created with any, implements anywhere.
  • Parser for a named argument, created with argument.
  • Apply inner parser several times and collect results into FromIterator, created with collect, Implements catch
  • Builder structure for the [command]
  • Parser that inserts static shell completion into bpaf’s dynamic shell completion
  • Create parser from a function, construct! uses it internally
  • Apply inner parser as many times as it succeeds while consuming something and return this number
  • Parser that substitutes missing value but not parse failure, created with fallback.
  • Parser that substitutes missing value with a function results but not parser failure, created with fallback_with.
  • Apply inner parser as many times as it succeeds while consuming something and return this number
  • Apply inner parser several times and collect results into Vec, created with many, implements catch.
  • Apply inner parser, return a value in Some if items requested by it are all present, restore and return None if any are missing. Created with optional. Implements catch
  • Parse a positional item, created with positional
  • Apply inner parser several times and collect results into Vec, created with some, requires for at least one item to be available to succeed. Implements catch