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§
- Named
Arg - A named thing used to create
flag,switchorargument - Parse
Any - Consume an arbitrary value that satisfies a condition, created with
any, implementsanywhere. - Parse
Argument - Parser for a named argument, created with
argument. - Parse
Collect - Apply inner parser several times and collect results into
FromIterator, created withcollect, Implementscatch - Parse
Command - Builder structure for the [
command] - Parse
Con - Create parser from a function,
construct!uses it internally - Parse
Count - Apply inner parser as many times as it succeeds while consuming something and return this number
- Parse
Fallback - Parser that substitutes missing value but not parse failure, created with
fallback. - Parse
Fallback With - Parser that substitutes missing value with a function results but not parser
failure, created with
fallback_with. - Parse
Flag - Parser for a named switch, created with
NamedArg::flagorNamedArg::switch - Parse
Last - Apply inner parser as many times as it succeeds while consuming something and return this number
- Parse
Many - Apply inner parser several times and collect results into
Vec, created withmany, implementscatch. - Parse
Optional - Apply inner parser, return a value in
Someif items requested by it are all present, restore and returnNoneif any are missing. Created withoptional. Implementscatch - Parse
Positional - Parse a positional item, created with
positional - Parse
Some - Apply inner parser several times and collect results into
Vec, created withsome, requires for at least one item to be available to succeed. Implementscatch