How to create a simple macro that matches enums in Rust?

前端 未结 0 928
孤城傲影
孤城傲影 2020-12-07 20:17

To create a macro that returns true if an enum matches a variant, I\'ve found the following solution.

macro_rules! is         


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