<p dir="auto">It would be nice to be able to make a datatype like the following:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="type tname&lt;N&gt; = Vec&lt;[int; N]&gt;;"><pre class="notranslate"><code class="notranslate">type tname&lt;N&gt; = Vec&lt;[int; N]&gt;;
</code></pre></div>
<p dir="auto">Where N is not a type but an integer. So, for example:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="let instance = tname::&lt;5&gt;::new();"><pre class="notranslate"><code class="notranslate">let instance = tname::&lt;5&gt;::new();
</code></pre></div>
<p dir="auto">would create an instance of <code class="notranslate">Vec&lt;int; 5]&gt;</code></p>
<p dir="auto">1.0.0-beta web API docs don't contain the <code class="notranslate">sort_by</code> slice method, even though it is documented in the sources:</p>
<p dir="auto"></p><div class="Box Box--condensed my-2">
  <div class="Box-header f6">
    <p class="mb-0 text-bold">
      <a href="https://github.com/rust-lang/rust/blob/9edbf42a342ced7357fe5ec225975f214d872fbc/src/libcollections/slice.rs#L245">rust/src/libcollections/slice.rs</a>
    </p>
    <p class="mb-0 color-fg-muted">
         Line 245
      in
      <a data-pjax="true" class="commit-tease-sha" href="/rust-lang/rust/commit/9edbf42a342ced7357fe5ec225975f214d872fbc">9edbf42</a>
    </p>
  </div>
  <div itemprop="text" class="Box-body p-0 blob-wrapper blob-wrapper-embedded data">
    <table class="highlight tab-size mb-0 js-file-line-container" data-tab-size="8" data-paste-markdown-skip="">

        <tbody><tr class="border-0">
          <td id="L245" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="245"></td>
          <td id="LC245" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-k">pub</span> <span class="pl-k">fn</span> <span class="pl-en">sort_by</span><span class="pl-kos">&lt;</span><span class="pl-smi">F</span><span class="pl-kos">&gt;</span><span class="pl-kos">(</span><span class="pl-c1">&amp;</span><span class="pl-k">mut</span> <span class="pl-smi">self</span><span class="pl-kos">,</span> <span class="pl-s1">compare</span><span class="pl-kos">:</span> <span class="pl-smi">F</span><span class="pl-kos">)</span> <span class="pl-k">where</span> <span class="pl-smi">F</span><span class="pl-kos">:</span> <span class="pl-smi">FnMut</span><span class="pl-kos">(</span><span class="pl-c1">&amp;</span><span class="pl-smi">T</span><span class="pl-kos">,</span> <span class="pl-c1">&amp;</span><span class="pl-smi">T</span><span class="pl-kos">)</span> -&gt; <span class="pl-smi">Ordering</span> <span class="pl-kos">{</span> </td>
        </tr>
    </tbody></table>
  </div>
</div>
<p></p>
<p dir="auto">It certainly can't be found when searching in the docs search widget, but it might be hidden somewhere in the std module docs, but I can't find it. Looks like a documentation build bug?</p>