How to validate struct creation?

后端 未结 0 1216
后悔当初
后悔当初 2020-12-20 07:45

I\'m working through Rust by Example. I\'m currently at TryFrom and TryInto. This is their code:

struct EvenNumber(i32);

impl TryFrom for EvenNumb         


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