title: How to initialize generic array with generic-array crate in rust?
body: <p>I use the <a href="https://crates.io/crates/generic-array" rel="nofollow noreferrer">generic-array</a> crate:</p>
  
  <pre class="lang-rust prettyprint-override"><code>struct Foo&lt;N: ArrayLength&lt;i32&gt;&gt; {
      data: GenericArray&lt;i32, N&gt;
  }
  </code></pre>
  
  <p>But it doesn't explain how to initialize value:</p>
  
  <pre class="lang-rust prettyprint-override"><code>impl&lt;N: ArrayLength&lt;i32&gt;&gt; Foo&lt;N&gt; {
      pub fn new() -&gt; Self {
          Self {
              data: // What to puts here?
          }
      }
  }
  </code></pre>
  
  <p>Playground <a href="https://play.rust-lang.org/?version=stable&amp;mode=debug&amp;edition=2018&amp;gist=db101765fae30bfc1359081d66b95056" rel="nofollow noreferrer">here</a> to help testers.</p>