Currently, I can write one of:
if option == Some(foo)
if matches!(option, Some(v) if v == foo)
The first is shorter and more readable but the second seems more idiomatic and performant.
So, I would like to be able to write the following:
Would this be a good addition to
Option in std?