Expand description
Derive macros to automatically implement the Parsable trait from token-parser.
Supports:
- Tuple structs: parsed positionally (
(value1 value2 …)). - Named structs: parsed with one sub-list per field in any order (
((name1 value1) (name2 value2) …)). Requires the struct to implementDefault. Unknown field names yieldUnknownField. Last value wins on duplicates. Missing fields keep their default. - Unit structs: parsed as the empty list
(). SymbolParsable: parses a tuple struct’s fields from the symbol string viaFromStr.
Derive Macros§
- Parsable
- Derive the
Parsabletrait. - Symbol
Parsable - Derive the
Parsabletrait by parsing unnamed fields using theFromStrtrait.