当前位置:网站首页>'how do I create an enumeration with constant values in rust?'- How can I create enums with constant values in Rust?

'how do I create an enumeration with constant values in rust?'- How can I create enums with constant values in Rust?

2022-06-25 06:35:00 fyin1314

problem :

"

I can do this:<\/i> I can do this :<\/b><\/p>

enum MyEnum {    A(i32),    B(i32),}

Solution :

Reference resources : https://stackoom.com/en/question/2Uwo5
原网站

版权声明
本文为[fyin1314]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202201234287899.html

随机推荐