title: Unpacking structure to l-value tuple in Rust
body: <p>I have following structure:</p>
  
  <pre><code>struct Pixel{x:f64, y:f64, dx:f64, dy:f64}
  </code></pre>
  
  <p>I got this structure as argument into function. I want to reduce typing and unpack it:</p>
  
  <pre><code>fn foo(pixel:Pixel){
      let (x, y, dx, dy) = pixel;
  }
  </code></pre>
  
  <p>This code does not compile. Are there any syntax sugar to avoid endless <code>pixel.x</code>, <code>pixel.dx</code>, etc? I want to have some easy way to 'extract' ( to alias) values of structure into my function. And I want to avoid verbosity of <code>let x = pixel.x; let dx = pixel.dx</code>, etc.</p>
  
  <p>Is there a concise way to do it? </p>