Module parse

Source
Expand description

Utilities for parsing

Structs§

ExplicitOption
A version of Option that is parsed with explicit Some(<inner>) or None syntax
KeyValuePair
A pair of values in a NestedDict
NestedDict
A nested dictionary mapping keys to values with =>, and surrounded by braces
NestedList
A nested list of Punctuated items, surrounded by brackets (ex. [1, 2, 3])
Syn
Wrapper type that parses via syn’s Parse trait

Traits§

MacroArg
A type that can be parsed as an argument to a macro.
MacroDictKey
The key in a NestedDict

Functions§

parse_str
Parses a MacroArg type from a string