title: Can a Rust struct be parametrized with values instead of types?
body: <p>I'm learning Rust and it is not clear to me if it is possible to have a Rust struct parametrized with some values (as well as types).
  In order to be more clear, is it possible in Rust to build a struct that mimic the behaviour of this C++ struct?</p>
  <pre><code>template &lt;int dim, class T&gt;
  struct Data
  {
    std::array&lt;T, dim&gt; data_;
  };
  </code></pre>