title: Is there a way to match two enum variants and also bind the matched variant to a variable?
body: <p>I have this enum:</p>
  
  <pre><code>enum ImageType {
      Png,
      Jpeg,
      Tiff,
  }
  </code></pre>
  
  <p>Is there any way to match one of the first two, and also bind the matched value to a variable? For example:</p>
  
  <pre><code>match get_image_type() {
      Some(h: ImageType::Png) | Some(h: ImageType::Jpeg) =&gt; {
          // Lots of shared code
          // that does something with `h`
      },
      Some(ImageType::Tiff) =&gt; { ... },
      None =&gt; { ... },
  }
  </code></pre>
  
  <p>That syntax doesn't work, but is there any that does?</p>