Crate choice_string

source ·

Enums

  • Error type for errors that may arise during the parsing of choice-strings. Very simple at the moment, only wrapping a nom ErrorKind
  • A parsed selection. Can represent all, none, or some set of ranges and items.
  • A selected element. Can either be an individual item, or a range of items.

Functions

  • Parse a choice string input to a Selection. Additionally reduces the set of ranges to the minimum representable by using a union operation. Wrapper for str::parse.
  • Parses a choice string to a Selection. This does not do any de-duplicating or condensing of parsed ranges.