Expand description
Structures that implement different methods on Parser trait
Structsยง
- Display
With ๐ - An implementation detail for
ParseFallback::format_fallbackandParseFallbackWith::format_fallback, to allow for custom fallback formatting. - Parse
Adjacent - Parse
Collect - Apply inner parser several times and collect results into
FromIterator, created withcollect, Implementscatch - 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
Fail - Parser that fails without consuming any input, created with
fail. - 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
Group Help - Parser with attached message to several fields, created with
group_help. - Parse
Guard - Parser fails with a message if check returns false, created with
guard. - Parse
Hide - Parser that returns results as usual but not shown in
--helpoutput, created withParser::hide - 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
Map - Parser that transforms parsed value with a function, created with
map. - 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
OrElse - Parser that tries to either of two parsers and uses one that succeeeds, created with
Parser::or_else. - Parse
Pure - Parser that returns a given value without consuming anything, created with
pure. - Parse
Pure With - 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 - Parse
Usage - Parser that hides inner parser from usage line
- Parse
With - Parser that transforms parsed value with a failing function, created with
parse - Parse
With Group Help - Parser with attached message to several fields, created with
group_help.
Functionsยง
- parse_
option ๐ - try to parse
- this_
or_ ๐that_ picks_ first - Given two possible errors along with to sets of arguments produce a new error or an instruction to pick between two answers. Updates arguments state to match the results