Trait for a "label" #297
Labels
C-core
Component: core functionality such as traits, etc.
C-macros
Component: macros.
E-complex
Effort: complex.
T-ergonomics
Type: ergonomics.
T-experiment
Type: experiment.
I have some type (e.g. struct), that I would like to derive label(s) from, e.g.
Could be equivalent to:
I tried using
IntoLabels
, unfortunately it does not compose:What are your thoughts on extending the macro syntax?
Perhaps another alternative would be to define a macro that would expand values of
X
intokey => value
pairs, but I was not able to come up with that -- this would already help and be more efficient (but less ergonomic) as it would also avoid theIntoLabels
Vec
allocation.The text was updated successfully, but these errors were encountered: