Crate v_utils_macros
source ·Macros§
- returns Vec
of the ways to refer to a struct name
Derive Macros§
- A brain-dead child format of mine. Idea is to make parameter specification as compact as possible. Very similar to how you would pass arguments to
clap
, but here all the args are [arg(short)] by default, and instead of spaces, equal signs, and separating names from values, we writenamed_argument: my_value
as-nmy_value
. Entries are separated by ‘:’ char. Macro generates FromStr and Display; assuming this format. - Put on a struct with optional fields, each of which implements FromStr BUG: may write to the wrong field, if any of the child structs share the same acronym AND same fields. In reality, shouldn’t happen.