Rust: Is there a way to shorten this if/else code using map?

前端 未结 0 1184
野性不改
野性不改 2021-01-27 12:14

I am having a hard time how to use map as shown in this:

Why does Rust need the `if let` syntax?

Is there a way to shorten this code using map? I need the el

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