Module time::parsing::combinator

source ·
Available on crate feature parsing only.
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.
  • Consume exactly n digits, returning the numerical value.
  • Consume exactly n digits, returning the numerical value.
  • Consume the first matching item, returning its associated value.
  • n_to_m 🔒
    Consume between n and m instances of the provided parser.
  • Consume between n and m digits, returning the numerical value.
  • Consume between n and m digits, returning the numerical value.
  • 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.
  • Consume zero or more instances of the provided parser. The parser must return the unit value.