Expand description
Utilities for parsing
Structs§
- Explicit
Option - A version of
Option
that is parsed with explicitSome(<inner>)
orNone
syntax - KeyValue
Pair - A pair of values in a NestedDict
- Nested
Dict - A nested dictionary mapping keys to values with
=>
, and surrounded by braces - Nested
List - A nested list of Punctuated items,
surrounded by brackets (ex.
[1, 2, 3]
) - Syn
- Wrapper type that parses via syn’s Parse trait
Traits§
- Macro
Arg - A type that can be parsed as an argument to a macro.
- Macro
Dict Key - The key in a NestedDict
Functions§
- parse_
str - Parses a
MacroArg
type from a string