Writing a rust macro repetition that may or may not initialize a struct field

前端 未结 0 1620
孤街浪徒
孤街浪徒 2021-01-20 16:38

I\'m trying to write a macro that lists a number of struct fields, but conditionally only creates initializer code from some fields in the list. Specifically, that might loo

相关标签:
回答
  • 消灭零回复
提交回复
热议问题