Module parser

Source
Expand description

Type aliases and default implementations for parsers called in prompts that need to parse user input, such as Confirm or CustomType.

Parsers receive the user input to a given prompt and return either a successful result (Ok) containing the parsed value or an empty Err if a value could not be parsed.

Constants§

DEFAULT_BOOL_PARSER
Bool formatter used by default in Confirm prompts.

Type Aliases§

BoolParser
Type alias for parsers used in Confirm prompts.
CustomTypeParser
Type alias for parsers used in Confirm prompts.