title: Is it possible to declare local anonymous structs in Rust?
body: <p>Sometimes I like to group related variables in a function, without declaring a new struct type.</p>
  
  <p>In C this can be done, e.g.:</p>
  
  <pre><code>void my_function() {    
      struct {
          int x, y;
          size_t size;
      } foo = {1, 1, 0};
      // ....
  }
  </code></pre>
  
  <p>Is there a way to do this in Rust? If not, what would be the closest equivalent?</p>