What's the most idiomatic way to test two Options for equality when they contain values which can be tested for equality?

后端 未结 2 2000
栀梦
栀梦 2021-02-19 14:22

I have two types that can be tested for equality. However, once I wrap them in Options, the nicety provided by various PartialEq implementations goes r

2条回答
  •  旧时难觅i
    2021-02-19 14:24

    There doesn't seem to be technical reason blocking this, it looks like it's just a matter of doing the implementation work.

提交回复
热议问题