Module time::parsing::combinator

source ยท
Expand description

Implementations of the low-level parser combinators.

Modulesยง

  • rfc ๐Ÿ”’
    Combinators for rules as defined in a standard.

Functionsยง

  • any_digit ๐Ÿ”’
    Consume exactly one digit.
  • ascii_char ๐Ÿ”’
    Consume exactly one of the provided ASCII characters.
  • Consume exactly one of the provided ASCII characters, case-insensitive.
  • exactly_n_digits ๐Ÿ”’
    Consume exactly n digits, returning the numerical value.
  • Consume exactly n digits, returning the numerical value.
  • first_match ๐Ÿ”’
    Consume the first matching item, returning its associated value.
  • n_to_m ๐Ÿ”’
    Consume between n and m instances of the provided parser.
  • n_to_m_digits ๐Ÿ”’
    Consume between n and m digits, returning the numerical value.
  • Consume between n and m digits, returning the numerical value.
  • one_or_more ๐Ÿ”’
    Consume one of or more instances of the provided parser. The parser must produce the unit value.
  • opt ๐Ÿ”’
    Optionally consume an input with a given parser.
  • sign ๐Ÿ”’
    Parse a โ€œ+โ€ or โ€œ-โ€ sign. Returns the ASCII byte representing the sign, if present.
  • zero_or_more ๐Ÿ”’
    Consume zero or more instances of the provided parser. The parser must return the unit value.