Matching Enum with Struct::default() value/ Error: expected tuple struct or tuple variant, found associated function `A::default`

前端 未结 0 1886
被撕碎了的回忆
被撕碎了的回忆 2020-12-31 05:03

I\'d like to match enums that have struct values. When I\'m doing matching an enum, it seems I\'m required to provide a value for the Enum field if it has one. I\'d like to

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