Files
google-apis-rs/tinyvec/enum.TinyVec.html
2021-04-02 00:20:57 +08:00

358 lines
139 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `TinyVec` enum in crate `tinyvec`."><meta name="keywords" content="rust, rustlang, rust-lang, TinyVec"><title>tinyvec::TinyVec - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc enum"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../tinyvec/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><p class="location">Enum TinyVec</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#variants">Variants</a><div class="sidebar-links"><a href="#variant.Heap">Heap</a><a href="#variant.Inline">Inline</a></div><a class="sidebar-title" href="#implementations">Methods</a><div class="sidebar-links"><a href="#method.append">append</a><a href="#method.as_mut_ptr">as_mut_ptr</a><a href="#method.as_mut_slice">as_mut_slice</a><a href="#method.as_ptr">as_ptr</a><a href="#method.as_slice">as_slice</a><a href="#method.capacity">capacity</a><a href="#method.clear">clear</a><a href="#method.drain">drain</a><a href="#method.extend_from_slice">extend_from_slice</a><a href="#method.from_array_len">from_array_len</a><a href="#method.insert">insert</a><a href="#method.is_empty">is_empty</a><a href="#method.is_heap">is_heap</a><a href="#method.is_inline">is_inline</a><a href="#method.len">len</a><a href="#method.move_to_the_heap">move_to_the_heap</a><a href="#method.move_to_the_heap_and_reserve">move_to_the_heap_and_reserve</a><a href="#method.new">new</a><a href="#method.pop">pop</a><a href="#method.push">push</a><a href="#method.remove">remove</a><a href="#method.reserve">reserve</a><a href="#method.reserve_exact">reserve_exact</a><a href="#method.resize">resize</a><a href="#method.resize_with">resize_with</a><a href="#method.retain">retain</a><a href="#method.shrink_to_fit">shrink_to_fit</a><a href="#method.splice">splice</a><a href="#method.split_off">split_off</a><a href="#method.swap_remove">swap_remove</a><a href="#method.truncate">truncate</a><a href="#method.try_from_array_len">try_from_array_len</a><a href="#method.with_capacity">with_capacity</a></div><a class="sidebar-title" href="#trait-implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-AsMut%3C%5B%3CA%20as%20Array%3E%3A%3AItem%5D%3E">AsMut&lt;[&lt;A as Array&gt;::Item]&gt;</a><a href="#impl-AsRef%3C%5B%3CA%20as%20Array%3E%3A%3AItem%5D%3E">AsRef&lt;[&lt;A as Array&gt;::Item]&gt;</a><a href="#impl-Binary">Binary</a><a href="#impl-Borrow%3C%5B%3CA%20as%20Array%3E%3A%3AItem%5D%3E">Borrow&lt;[&lt;A as Array&gt;::Item]&gt;</a><a href="#impl-BorrowMut%3C%5B%3CA%20as%20Array%3E%3A%3AItem%5D%3E">BorrowMut&lt;[&lt;A as Array&gt;::Item]&gt;</a><a href="#impl-Clone">Clone</a><a href="#impl-Debug">Debug</a><a href="#impl-Default">Default</a><a href="#impl-Deref">Deref</a><a href="#impl-DerefMut">DerefMut</a><a href="#impl-Display">Display</a><a href="#impl-Eq">Eq</a><a href="#impl-Extend%3C%3CA%20as%20Array%3E%3A%3AItem%3E">Extend&lt;&lt;A as Array&gt;::Item&gt;</a><a href="#impl-From%3C%26%27_%20%5BT%5D%3E">From&lt;&amp;&#39;_ [T]&gt;</a><a href="#impl-From%3C%26%27_%20mut%20%5BT%5D%3E">From&lt;&amp;&#39;_ mut [T]&gt;</a><a href="#impl-From%3CA%3E">From&lt;A&gt;</a><a href="#impl-From%3CArrayVec%3CA%3E%3E">From&lt;ArrayVec&lt;A&gt;&gt;</a><a href="#impl-FromIterator%3C%3CA%20as%20Array%3E%3A%3AItem%3E">FromIterator&lt;&lt;A as Array&gt;::Item&gt;</a><a href="#impl-Hash">Hash</a><a href="#impl-Index%3CI%3E">Index&lt;I&gt;</a><a href="#impl-IndexMut%3CI%3E">IndexMut&lt;I&gt;</a><a href="#impl-IntoIterator">IntoIterator</a><a href="#impl-LowerExp">LowerExp</a><a href="#impl-LowerHex">LowerHex</a><a href="#impl-Octal">Octal</a><a href="#impl-Ord">Ord</a><a href="#impl-PartialEq%3C%26%27_%20%5B%3CA%20as%20Array%3E%3A%3AItem%5D%3E">PartialEq&lt;&amp;&#39;_ [&lt;A as Array&gt;::Item]&gt;</a><a href="#impl-PartialEq%3C%26%27_%20A%3E">PartialEq&lt;&amp;&#39;_ A&gt;</a><a href="#impl-PartialEq%3CTinyVec%3CA%3E%3E">PartialEq&lt;TinyVec&lt;A&gt;&gt;</a><a href="#impl-PartialOrd%3CTinyVec%3CA%3E%3E">PartialOrd&lt;TinyVec&lt;A&gt;&gt;</a><a href="#impl-Pointer">Pointer</a><a href="#impl-UpperExp">UpperExp</a><a href="#impl-UpperHex">UpperHex</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow&lt;T&gt;</a><a href="#impl-BorrowMut%3CT%3E">BorrowMut&lt;T&gt;</a><a href="#impl-From%3C!%3E">From&lt;!&gt;</a><a href="#impl-From%3CT%3E">From&lt;T&gt;</a><a href="#impl-Into%3CU%3E">Into&lt;U&gt;</a><a href="#impl-ToOwned">ToOwned</a><a href="#impl-ToString">ToString</a><a href="#impl-TryFrom%3CU%3E">TryFrom&lt;U&gt;</a><a href="#impl-TryInto%3CU%3E">TryInto&lt;U&gt;</a></div></div><p class="location"><a href="index.html">tinyvec</a></p><div id="sidebar-vars" data-name="TinyVec" data-ty="enum" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" class="help-button">?</button>
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Enum <a href="index.html">tinyvec</a>::<wbr><a class="enum" href="">TinyVec</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#95-100" title="goto source code">[src]</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class="rust enum">pub enum TinyVec&lt;A:&nbsp;<a class="trait" href="../tinyvec/trait.Array.html" title="trait tinyvec::Array">Array</a>&gt; {
Inline(<a class="struct" href="../tinyvec/struct.ArrayVec.html" title="struct tinyvec::ArrayVec">ArrayVec</a>&lt;A&gt;),
Heap(<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;A::<a class="type" href="../tinyvec/trait.Array.html#associatedtype.Item" title="type tinyvec::Array::Item">Item</a>&gt;),
}</pre></div><div class="docblock"><p>A vector that starts inline, but can automatically move to the heap.</p>
<ul>
<li>Requires the <code>alloc</code> feature</li>
</ul>
<p>A <code>TinyVec</code> is either an Inline(<a href="../tinyvec/struct.ArrayVec.html"><code>ArrayVec</code></a>) or
Heap(<a href="https://doc.rust-lang.org/alloc/vec/struct.Vec.html"><code>Vec</code></a>). The
interface for the type as a whole is a bunch of methods that just match on
the enum variant and then call the same method on the inner vec.</p>
<h2 id="construction" class="section-header"><a href="#construction">Construction</a></h2>
<p>Because it's an enum, you can construct a <code>TinyVec</code> simply by making an
<code>ArrayVec</code> or <code>Vec</code> and then putting it into the enum.</p>
<p>There is also a macro</p>
<div class="example-wrap"><pre class="rust rust-example-rendered">
<span class="kw">let</span> <span class="ident">empty_tv</span> <span class="op">=</span> <span class="macro">tiny_vec</span><span class="macro">!</span>([<span class="ident">u8</span>; <span class="number">16</span>]);
<span class="kw">let</span> <span class="ident">some_ints</span> <span class="op">=</span> <span class="macro">tiny_vec</span><span class="macro">!</span>([<span class="ident">i32</span>; <span class="number">4</span>] <span class="op">=</span><span class="op">&gt;</span> <span class="number">1</span>, <span class="number">2</span>, <span class="number">3</span>);</pre></div>
</div><h2 id="variants" class="variants small-section-header">
Variants<a href="#variants" class="anchor"></a></h2>
<div id="variant.Inline" class="variant small-section-header"><a href="#variant.Inline" class="anchor field"></a><code>Inline(<a class="struct" href="../tinyvec/struct.ArrayVec.html" title="struct tinyvec::ArrayVec">ArrayVec</a>&lt;A&gt;)</code></div><div id="variant.Heap" class="variant small-section-header"><a href="#variant.Heap" class="anchor field"></a><code>Heap(<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;A::<a class="type" href="../tinyvec/trait.Array.html#associatedtype.Item" title="type tinyvec::Array::Item">Item</a>&gt;)</code></div><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><h3 id="impl" class="impl"><code class="in-band">impl&lt;A:&nbsp;<a class="trait" href="../tinyvec/trait.Array.html" title="trait tinyvec::Array">Array</a>&gt; <a class="enum" href="../tinyvec/enum.TinyVec.html" title="enum tinyvec::TinyVec">TinyVec</a>&lt;A&gt;</code><a href="#impl" class="anchor"></a><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#180-345" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.is_heap" class="method"><code><span class="docblock attributes">#[must_use]</span>pub fn <a href="#method.is_heap" class="fnname">is_heap</a>(&amp;self) -&gt; bool</code><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#184-189" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns whether elements are on heap</p>
</div><h4 id="method.is_inline" class="method"><code><span class="docblock attributes">#[must_use]</span>pub fn <a href="#method.is_inline" class="fnname">is_inline</a>(&amp;self) -&gt; bool</code><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#193-195" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns whether elements are on stack</p>
</div><h4 id="method.shrink_to_fit" class="method"><code>pub fn <a href="#method.shrink_to_fit" class="fnname">shrink_to_fit</a>(&amp;mut self)</code><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#208-224" title="goto source code">[src]</a></h4><div class="docblock"><p>Shrinks the capacity of the vector as much as possible.<br />
It is inlined if length is less than <code>A::CAPACITY</code>.</p>
<div class="example-wrap"><pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">tinyvec</span>::<span class="kw-2">*</span>;
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">tv</span> <span class="op">=</span> <span class="macro">tiny_vec</span><span class="macro">!</span>([<span class="ident">i32</span>; <span class="number">2</span>] <span class="op">=</span><span class="op">&gt;</span> <span class="number">1</span>, <span class="number">2</span>, <span class="number">3</span>);
<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">tv</span>.<span class="ident">is_heap</span>());
<span class="kw">let</span> <span class="kw">_</span> <span class="op">=</span> <span class="ident">tv</span>.<span class="ident">pop</span>();
<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">tv</span>.<span class="ident">is_heap</span>());
<span class="ident">tv</span>.<span class="ident">shrink_to_fit</span>();
<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">tv</span>.<span class="ident">is_inline</span>());</pre></div>
</div><h4 id="method.move_to_the_heap" class="method"><code>pub fn <a href="#method.move_to_the_heap" class="fnname">move_to_the_heap</a>(&amp;mut self)</code><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#235-243" title="goto source code">[src]</a></h4><div class="docblock"><p>Moves the content of the TinyVec to the heap, if it's inline.</p>
<div class="example-wrap"><pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">tinyvec</span>::<span class="kw-2">*</span>;
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">tv</span> <span class="op">=</span> <span class="macro">tiny_vec</span><span class="macro">!</span>([<span class="ident">i32</span>; <span class="number">4</span>] <span class="op">=</span><span class="op">&gt;</span> <span class="number">1</span>, <span class="number">2</span>, <span class="number">3</span>);
<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">tv</span>.<span class="ident">is_inline</span>());
<span class="ident">tv</span>.<span class="ident">move_to_the_heap</span>();
<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">tv</span>.<span class="ident">is_heap</span>());</pre></div>
</div><h4 id="method.move_to_the_heap_and_reserve" class="method"><code>pub fn <a href="#method.move_to_the_heap_and_reserve" class="fnname">move_to_the_heap_and_reserve</a>(&amp;mut self, n: usize)</code><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#255-263" title="goto source code">[src]</a></h4><div class="docblock"><p>If TinyVec is inline, moves the content of it to the heap.
Also reserves additional space.</p>
<div class="example-wrap"><pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">tinyvec</span>::<span class="kw-2">*</span>;
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">tv</span> <span class="op">=</span> <span class="macro">tiny_vec</span><span class="macro">!</span>([<span class="ident">i32</span>; <span class="number">4</span>] <span class="op">=</span><span class="op">&gt;</span> <span class="number">1</span>, <span class="number">2</span>, <span class="number">3</span>);
<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">tv</span>.<span class="ident">is_inline</span>());
<span class="ident">tv</span>.<span class="ident">move_to_the_heap_and_reserve</span>(<span class="number">32</span>);
<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">tv</span>.<span class="ident">is_heap</span>());
<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">tv</span>.<span class="ident">capacity</span>() <span class="op">&gt;</span><span class="op">=</span> <span class="number">35</span>);</pre></div>
</div><h4 id="method.reserve" class="method"><code>pub fn <a href="#method.reserve" class="fnname">reserve</a>(&amp;mut self, n: usize)</code><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#275-288" title="goto source code">[src]</a></h4><div class="docblock"><p>Reserves additional space.
Moves to the heap if array can't hold <code>n</code> more items</p>
<div class="example-wrap"><pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">tinyvec</span>::<span class="kw-2">*</span>;
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">tv</span> <span class="op">=</span> <span class="macro">tiny_vec</span><span class="macro">!</span>([<span class="ident">i32</span>; <span class="number">4</span>] <span class="op">=</span><span class="op">&gt;</span> <span class="number">1</span>, <span class="number">2</span>, <span class="number">3</span>, <span class="number">4</span>);
<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">tv</span>.<span class="ident">is_inline</span>());
<span class="ident">tv</span>.<span class="ident">reserve</span>(<span class="number">1</span>);
<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">tv</span>.<span class="ident">is_heap</span>());
<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">tv</span>.<span class="ident">capacity</span>() <span class="op">&gt;</span><span class="op">=</span> <span class="number">5</span>);</pre></div>
</div><h4 id="method.reserve_exact" class="method"><code>pub fn <a href="#method.reserve_exact" class="fnname">reserve_exact</a>(&amp;mut self, n: usize)</code><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#307-320" title="goto source code">[src]</a></h4><div class="docblock"><p>Reserves additional space.
Moves to the heap if array can't hold <code>n</code> more items</p>
<p>From <a href="https://doc.rust-lang.org/std/vec/struct.Vec.html#method.reserve_exact">Vec::reserve_exact</a></p>
<pre><code class="language-text">Note that the allocator may give the collection more space than it requests.
Therefore, capacity can not be relied upon to be precisely minimal.
Prefer `reserve` if future insertions are expected.
</code></pre>
<div class="example-wrap"><pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">tinyvec</span>::<span class="kw-2">*</span>;
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">tv</span> <span class="op">=</span> <span class="macro">tiny_vec</span><span class="macro">!</span>([<span class="ident">i32</span>; <span class="number">4</span>] <span class="op">=</span><span class="op">&gt;</span> <span class="number">1</span>, <span class="number">2</span>, <span class="number">3</span>, <span class="number">4</span>);
<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">tv</span>.<span class="ident">is_inline</span>());
<span class="ident">tv</span>.<span class="ident">reserve_exact</span>(<span class="number">1</span>);
<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">tv</span>.<span class="ident">is_heap</span>());
<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">tv</span>.<span class="ident">capacity</span>() <span class="op">&gt;</span><span class="op">=</span> <span class="number">5</span>);</pre></div>
</div><h4 id="method.with_capacity" class="method"><code><span class="docblock attributes">#[must_use]</span>pub fn <a href="#method.with_capacity" class="fnname">with_capacity</a>(cap: usize) -&gt; Self</code><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#338-344" title="goto source code">[src]</a></h4><div class="docblock"><p>Makes a new TinyVec with <em>at least</em> the given capacity.</p>
<p>If the requested capacity is less than or equal to the array capacity you
get an inline vec. If it's greater than you get a heap vec.</p>
<div class="example-wrap"><pre class="rust rust-example-rendered">
<span class="kw">let</span> <span class="ident">t</span> <span class="op">=</span> <span class="ident">TinyVec</span>::<span class="op">&lt;</span>[<span class="ident">u8</span>; <span class="number">10</span>]<span class="op">&gt;</span>::<span class="ident">with_capacity</span>(<span class="number">5</span>);
<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">t</span>.<span class="ident">is_inline</span>());
<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">t</span>.<span class="ident">capacity</span>() <span class="op">&gt;</span><span class="op">=</span> <span class="number">5</span>);
<span class="kw">let</span> <span class="ident">t</span> <span class="op">=</span> <span class="ident">TinyVec</span>::<span class="op">&lt;</span>[<span class="ident">u8</span>; <span class="number">10</span>]<span class="op">&gt;</span>::<span class="ident">with_capacity</span>(<span class="number">20</span>);
<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">t</span>.<span class="ident">is_heap</span>());
<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">t</span>.<span class="ident">capacity</span>() <span class="op">&gt;</span><span class="op">=</span> <span class="number">20</span>);</pre></div>
</div></div><h3 id="impl-1" class="impl"><code class="in-band">impl&lt;A:&nbsp;<a class="trait" href="../tinyvec/trait.Array.html" title="trait tinyvec::Array">Array</a>&gt; <a class="enum" href="../tinyvec/enum.TinyVec.html" title="enum tinyvec::TinyVec">TinyVec</a>&lt;A&gt;</code><a href="#impl-1" class="anchor"></a><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#347-873" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.append" class="method"><code>pub fn <a href="#method.append" class="fnname">append</a>(&amp;mut self, other: &amp;mut Self)</code><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#365-370" title="goto source code">[src]</a></h4><div class="docblock"><p>Move all values from <code>other</code> into this vec.</p>
</div><h4 id="method.swap_remove" class="method"><code>pub fn <a href="#method.swap_remove" class="fnname">swap_remove</a>(&amp;mut self, index: usize) -&gt; A::<a class="type" href="../tinyvec/trait.Array.html#associatedtype.Item" title="type tinyvec::Array::Item">Item</a></code><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#372-456" title="goto source code">[src]</a></h4><div class="docblock"><p>Remove an element, swapping the end of the vec into its place.</p>
<h2 id="panics" class="section-header"><a href="#panics">Panics</a></h2>
<ul>
<li>If the index is out of bounds.</li>
</ul>
<h2 id="example" class="section-header"><a href="#example">Example</a></h2>
<div class="example-wrap"><pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">tinyvec</span>::<span class="kw-2">*</span>;
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">tv</span> <span class="op">=</span> <span class="macro">tiny_vec</span><span class="macro">!</span>([<span class="kw-2">&amp;</span><span class="ident">str</span>; <span class="number">4</span>] <span class="op">=</span><span class="op">&gt;</span> <span class="string">&quot;foo&quot;</span>, <span class="string">&quot;bar&quot;</span>, <span class="string">&quot;quack&quot;</span>, <span class="string">&quot;zap&quot;</span>);
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">tv</span>.<span class="ident">swap_remove</span>(<span class="number">1</span>), <span class="string">&quot;bar&quot;</span>);
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">tv</span>.<span class="ident">as_slice</span>(), <span class="kw-2">&amp;</span>[<span class="string">&quot;foo&quot;</span>, <span class="string">&quot;zap&quot;</span>, <span class="string">&quot;quack&quot;</span>][..]);
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">tv</span>.<span class="ident">swap_remove</span>(<span class="number">0</span>), <span class="string">&quot;foo&quot;</span>);
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">tv</span>.<span class="ident">as_slice</span>(), <span class="kw-2">&amp;</span>[<span class="string">&quot;quack&quot;</span>, <span class="string">&quot;zap&quot;</span>][..]);</pre></div>
</div><h4 id="method.pop" class="method"><code>pub fn <a href="#method.pop" class="fnname">pop</a>(&amp;mut self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;A::<a class="type" href="../tinyvec/trait.Array.html#associatedtype.Item" title="type tinyvec::Array::Item">Item</a>&gt;</code><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#372-456" title="goto source code">[src]</a></h4><div class="docblock"><p>Remove and return the last element of the vec, if there is one.</p>
<h2 id="failure" class="section-header"><a href="#failure">Failure</a></h2>
<ul>
<li>If the vec is empty you get <code>None</code>.</li>
</ul>
</div><h4 id="method.remove" class="method"><code>pub fn <a href="#method.remove" class="fnname">remove</a>(&amp;mut self, index: usize) -&gt; A::<a class="type" href="../tinyvec/trait.Array.html#associatedtype.Item" title="type tinyvec::Array::Item">Item</a></code><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#372-456" title="goto source code">[src]</a></h4><div class="docblock"><p>Removes the item at <code>index</code>, shifting all others down by one index.</p>
<p>Returns the removed element.</p>
<h2 id="panics-1" class="section-header"><a href="#panics-1">Panics</a></h2>
<p>If the index is out of bounds.</p>
<h2 id="example-1" class="section-header"><a href="#example-1">Example</a></h2>
<div class="example-wrap"><pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">tinyvec</span>::<span class="kw-2">*</span>;
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">tv</span> <span class="op">=</span> <span class="macro">tiny_vec</span><span class="macro">!</span>([<span class="ident">i32</span>; <span class="number">4</span>] <span class="op">=</span><span class="op">&gt;</span> <span class="number">1</span>, <span class="number">2</span>, <span class="number">3</span>);
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">tv</span>.<span class="ident">remove</span>(<span class="number">1</span>), <span class="number">2</span>);
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">tv</span>.<span class="ident">as_slice</span>(), <span class="kw-2">&amp;</span>[<span class="number">1</span>, <span class="number">3</span>][..]);</pre></div>
</div><h4 id="method.len" class="method"><code><span class="docblock attributes">#[must_use]</span>pub fn <a href="#method.len" class="fnname">len</a>(&amp;self) -&gt; usize</code><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#372-456" title="goto source code">[src]</a></h4><div class="docblock"><p>The length of the vec (in elements).</p>
</div><h4 id="method.capacity" class="method"><code><span class="docblock attributes">#[must_use]</span>pub fn <a href="#method.capacity" class="fnname">capacity</a>(&amp;self) -&gt; usize</code><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#372-456" title="goto source code">[src]</a></h4><div class="docblock"><p>The capacity of the <code>TinyVec</code>.</p>
<p>When not heap allocated this is fixed based on the array type.
Otherwise its the result of the underlying Vec::capacity.</p>
</div><h4 id="method.truncate" class="method"><code>pub fn <a href="#method.truncate" class="fnname">truncate</a>(&amp;mut self, new_len: usize)</code><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#372-456" title="goto source code">[src]</a></h4><div class="docblock"><p>Reduces the vec's length to the given value.</p>
<p>If the vec is already shorter than the input, nothing happens.</p>
</div><h4 id="method.as_mut_ptr" class="method"><code><span class="docblock attributes">#[must_use]</span>pub fn <a href="#method.as_mut_ptr" class="fnname">as_mut_ptr</a>(&amp;mut self) -&gt; *mut A::<a class="type" href="../tinyvec/trait.Array.html#associatedtype.Item" title="type tinyvec::Array::Item">Item</a></code><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#372-456" title="goto source code">[src]</a></h4><div class="docblock"><p>A mutable pointer to the backing array.</p>
<h2 id="safety" class="section-header"><a href="#safety">Safety</a></h2>
<p>This pointer has provenance over the <em>entire</em> backing array/buffer.</p>
</div><h4 id="method.as_ptr" class="method"><code><span class="docblock attributes">#[must_use]</span>pub fn <a href="#method.as_ptr" class="fnname">as_ptr</a>(&amp;self) -&gt; *const A::<a class="type" href="../tinyvec/trait.Array.html#associatedtype.Item" title="type tinyvec::Array::Item">Item</a></code><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#372-456" title="goto source code">[src]</a></h4><div class="docblock"><p>A const pointer to the backing array.</p>
<h2 id="safety-1" class="section-header"><a href="#safety-1">Safety</a></h2>
<p>This pointer has provenance over the <em>entire</em> backing array/buffer.</p>
</div><h4 id="method.retain" class="method"><code>pub fn <a href="#method.retain" class="fnname">retain</a>&lt;F:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(&amp;A::<a class="type" href="../tinyvec/trait.Array.html#associatedtype.Item" title="type tinyvec::Array::Item">Item</a>) -&gt; bool&gt;(&amp;mut self, acceptable: F)</code><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#470-475" title="goto source code">[src]</a></h4><div class="docblock"><p>Walk the vec and keep only the elements that pass the predicate given.</p>
<h2 id="example-2" class="section-header"><a href="#example-2">Example</a></h2>
<div class="example-wrap"><pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">tinyvec</span>::<span class="kw-2">*</span>;
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">tv</span> <span class="op">=</span> <span class="macro">tiny_vec</span><span class="macro">!</span>([<span class="ident">i32</span>; <span class="number">10</span>] <span class="op">=</span><span class="op">&gt;</span> <span class="number">1</span>, <span class="number">2</span>, <span class="number">3</span>, <span class="number">4</span>);
<span class="ident">tv</span>.<span class="ident">retain</span>(<span class="op">|</span><span class="kw-2">&amp;</span><span class="ident">x</span><span class="op">|</span> <span class="ident">x</span> <span class="op">%</span> <span class="number">2</span> <span class="op">=</span><span class="op">=</span> <span class="number">0</span>);
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">tv</span>.<span class="ident">as_slice</span>(), <span class="kw-2">&amp;</span>[<span class="number">2</span>, <span class="number">4</span>][..]);</pre></div>
</div><h4 id="method.as_mut_slice" class="method"><code><span class="docblock attributes">#[must_use]</span>pub fn <a href="#method.as_mut_slice" class="fnname">as_mut_slice</a>(&amp;mut self) -&gt; &amp;mut [A::<a class="type" href="../tinyvec/trait.Array.html#associatedtype.Item" title="type tinyvec::Array::Item">Item</a>]</code><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#480-482" title="goto source code">[src]</a></h4><div class="docblock"><p>Helper for getting the mut slice.</p>
</div><h4 id="method.as_slice" class="method"><code><span class="docblock attributes">#[must_use]</span>pub fn <a href="#method.as_slice" class="fnname">as_slice</a>(&amp;self) -&gt; &amp;[A::<a class="type" href="../tinyvec/trait.Array.html#associatedtype.Item" title="type tinyvec::Array::Item">Item</a>]</code><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#487-489" title="goto source code">[src]</a></h4><div class="docblock"><p>Helper for getting the shared slice.</p>
</div><h4 id="method.clear" class="method"><code>pub fn <a href="#method.clear" class="fnname">clear</a>(&amp;mut self)</code><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#493-495" title="goto source code">[src]</a></h4><div class="docblock"><p>Removes all elements from the vec.</p>
</div><h4 id="method.drain" class="method"><code>pub fn <a href="#method.drain" class="fnname">drain</a>&lt;R:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/range/trait.RangeBounds.html" title="trait core::ops::range::RangeBounds">RangeBounds</a>&lt;usize&gt;&gt;(&amp;mut self, range: R) -&gt; <a class="enum" href="../tinyvec/enum.TinyVecDrain.html" title="enum tinyvec::TinyVecDrain">TinyVecDrain</a>&lt;'_, A&gt;<span class="notable-traits"><span class="notable-traits-tooltip"><div class="notable-traits-tooltiptext"><span class="docblock"><h3 class="notable">Notable traits for <a class="enum" href="../tinyvec/enum.TinyVecDrain.html" title="enum tinyvec::TinyVecDrain">TinyVecDrain</a>&lt;'p, A&gt;</h3><code class="content"><span class="where fmt-newline">impl&lt;'p, A:&nbsp;<a class="trait" href="../tinyvec/trait.Array.html" title="trait tinyvec::Array">Array</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="enum" href="../tinyvec/enum.TinyVecDrain.html" title="enum tinyvec::TinyVecDrain">TinyVecDrain</a>&lt;'p, A&gt;</span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="type">Item</a> = A::<a class="type" href="../tinyvec/trait.Array.html#associatedtype.Item" title="type tinyvec::Array::Item">Item</a>;</span></code></span></div></span></span></code><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#556-563" title="goto source code">[src]</a></h4><div class="docblock"><p>Creates a draining iterator that removes the specified range in the vector
and yields the removed items.</p>
<p><strong>Note: This method has significant performance issues compared to
matching on the TinyVec and then calling drain on the Inline or Heap value
inside. The draining iterator has to branch on every single access. It is
provided for simplicity and compatability only.</strong></p>
<h2 id="panics-2" class="section-header"><a href="#panics-2">Panics</a></h2>
<ul>
<li>If the start is greater than the end</li>
<li>If the end is past the edge of the vec.</li>
</ul>
<h2 id="example-3" class="section-header"><a href="#example-3">Example</a></h2>
<div class="example-wrap"><pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">tinyvec</span>::<span class="kw-2">*</span>;
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">tv</span> <span class="op">=</span> <span class="macro">tiny_vec</span><span class="macro">!</span>([<span class="ident">i32</span>; <span class="number">4</span>] <span class="op">=</span><span class="op">&gt;</span> <span class="number">1</span>, <span class="number">2</span>, <span class="number">3</span>);
<span class="kw">let</span> <span class="ident">tv2</span>: <span class="ident">TinyVec</span><span class="op">&lt;</span>[<span class="ident">i32</span>; <span class="number">4</span>]<span class="op">&gt;</span> <span class="op">=</span> <span class="ident">tv</span>.<span class="ident">drain</span>(<span class="number">1</span>..).<span class="ident">collect</span>();
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">tv</span>.<span class="ident">as_slice</span>(), <span class="kw-2">&amp;</span>[<span class="number">1</span>][..]);
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">tv2</span>.<span class="ident">as_slice</span>(), <span class="kw-2">&amp;</span>[<span class="number">2</span>, <span class="number">3</span>][..]);
<span class="ident">tv</span>.<span class="ident">drain</span>(..);
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">tv</span>.<span class="ident">as_slice</span>(), <span class="kw-2">&amp;</span>[]);</pre></div>
</div><h4 id="method.extend_from_slice" class="method"><code>pub fn <a href="#method.extend_from_slice" class="fnname">extend_from_slice</a>(&amp;mut self, sli: &amp;[A::<a class="type" href="../tinyvec/trait.Array.html#associatedtype.Item" title="type tinyvec::Array::Item">Item</a>]) <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A::<a class="type" href="../tinyvec/trait.Array.html#associatedtype.Item" title="type tinyvec::Array::Item">Item</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,&nbsp;</span></code><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#573-582" title="goto source code">[src]</a></h4><div class="docblock"><p>Clone each element of the slice into this vec.</p>
<div class="example-wrap"><pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">tinyvec</span>::<span class="kw-2">*</span>;
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">tv</span> <span class="op">=</span> <span class="macro">tiny_vec</span><span class="macro">!</span>([<span class="ident">i32</span>; <span class="number">4</span>] <span class="op">=</span><span class="op">&gt;</span> <span class="number">1</span>, <span class="number">2</span>);
<span class="ident">tv</span>.<span class="ident">extend_from_slice</span>(<span class="kw-2">&amp;</span>[<span class="number">3</span>, <span class="number">4</span>]);
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">tv</span>.<span class="ident">as_slice</span>(), [<span class="number">1</span>, <span class="number">2</span>, <span class="number">3</span>, <span class="number">4</span>]);</pre></div>
</div><h4 id="method.from_array_len" class="method"><code><span class="docblock attributes">#[must_use]</span>pub fn <a href="#method.from_array_len" class="fnname">from_array_len</a>(data: A, len: usize) -&gt; Self</code><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#594-601" title="goto source code">[src]</a></h4><div class="docblock"><p>Wraps up an array and uses the given length as the initial length.</p>
<p>Note that the <code>From</code> impl for arrays assumes the full length is used.</p>
<h2 id="panics-3" class="section-header"><a href="#panics-3">Panics</a></h2>
<p>The length must be less than or equal to the capacity of the array.</p>
</div><h4 id="method.insert" class="method"><code>pub fn <a href="#method.insert" class="fnname">insert</a>(&amp;mut self, index: usize, item: A::<a class="type" href="../tinyvec/trait.Array.html#associatedtype.Item" title="type tinyvec::Array::Item">Item</a>)</code><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#632-654" title="goto source code">[src]</a></h4><div class="docblock"><p>Inserts an item at the position given, moving all following elements +1
index.</p>
<h2 id="panics-4" class="section-header"><a href="#panics-4">Panics</a></h2>
<ul>
<li>If <code>index</code> &gt; <code>len</code></li>
</ul>
<h2 id="example-4" class="section-header"><a href="#example-4">Example</a></h2>
<div class="example-wrap"><pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">tinyvec</span>::<span class="kw-2">*</span>;
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">tv</span> <span class="op">=</span> <span class="macro">tiny_vec</span><span class="macro">!</span>([<span class="ident">i32</span>; <span class="number">10</span>] <span class="op">=</span><span class="op">&gt;</span> <span class="number">1</span>, <span class="number">2</span>, <span class="number">3</span>);
<span class="ident">tv</span>.<span class="ident">insert</span>(<span class="number">1</span>, <span class="number">4</span>);
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">tv</span>.<span class="ident">as_slice</span>(), <span class="kw-2">&amp;</span>[<span class="number">1</span>, <span class="number">4</span>, <span class="number">2</span>, <span class="number">3</span>]);
<span class="ident">tv</span>.<span class="ident">insert</span>(<span class="number">4</span>, <span class="number">5</span>);
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">tv</span>.<span class="ident">as_slice</span>(), <span class="kw-2">&amp;</span>[<span class="number">1</span>, <span class="number">4</span>, <span class="number">2</span>, <span class="number">3</span>, <span class="number">5</span>]);</pre></div>
</div><h4 id="method.is_empty" class="method"><code><span class="docblock attributes">#[must_use]</span>pub fn <a href="#method.is_empty" class="fnname">is_empty</a>(&amp;self) -&gt; bool</code><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#659-661" title="goto source code">[src]</a></h4><div class="docblock"><p>If the vec is empty.</p>
</div><h4 id="method.new" class="method"><code><span class="docblock attributes">#[must_use]</span>pub fn <a href="#method.new" class="fnname">new</a>() -&gt; Self</code><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#666-668" title="goto source code">[src]</a></h4><div class="docblock"><p>Makes a new, empty vec.</p>
</div><h4 id="method.push" class="method"><code>pub fn <a href="#method.push" class="fnname">push</a>(&amp;mut self, val: A::<a class="type" href="../tinyvec/trait.Array.html#associatedtype.Item" title="type tinyvec::Array::Item">Item</a>)</code><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#680-708" title="goto source code">[src]</a></h4><div class="docblock"><p>Place an element onto the end of the vec.</p>
<h2 id="panics-5" class="section-header"><a href="#panics-5">Panics</a></h2>
<ul>
<li>If the length of the vec would overflow the capacity.</li>
</ul>
<div class="example-wrap"><pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">tinyvec</span>::<span class="kw-2">*</span>;
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">tv</span> <span class="op">=</span> <span class="macro">tiny_vec</span><span class="macro">!</span>([<span class="ident">i32</span>; <span class="number">10</span>] <span class="op">=</span><span class="op">&gt;</span> <span class="number">1</span>, <span class="number">2</span>, <span class="number">3</span>);
<span class="ident">tv</span>.<span class="ident">push</span>(<span class="number">4</span>);
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">tv</span>.<span class="ident">as_slice</span>(), <span class="kw-2">&amp;</span>[<span class="number">1</span>, <span class="number">2</span>, <span class="number">3</span>, <span class="number">4</span>]);</pre></div>
</div><h4 id="method.resize" class="method"><code>pub fn <a href="#method.resize" class="fnname">resize</a>(&amp;mut self, new_len: usize, new_val: A::<a class="type" href="../tinyvec/trait.Array.html#associatedtype.Item" title="type tinyvec::Array::Item">Item</a>) <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A::<a class="type" href="../tinyvec/trait.Array.html#associatedtype.Item" title="type tinyvec::Array::Item">Item</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,&nbsp;</span></code><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#729-734" title="goto source code">[src]</a></h4><div class="docblock"><p>Resize the vec to the new length.</p>
<p>If it needs to be longer, it's filled with clones of the provided value.
If it needs to be shorter, it's truncated.</p>
<h2 id="example-5" class="section-header"><a href="#example-5">Example</a></h2>
<div class="example-wrap"><pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">tinyvec</span>::<span class="kw-2">*</span>;
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">tv</span> <span class="op">=</span> <span class="macro">tiny_vec</span><span class="macro">!</span>([<span class="kw-2">&amp;</span><span class="ident">str</span>; <span class="number">10</span>] <span class="op">=</span><span class="op">&gt;</span> <span class="string">&quot;hello&quot;</span>);
<span class="ident">tv</span>.<span class="ident">resize</span>(<span class="number">3</span>, <span class="string">&quot;world&quot;</span>);
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">tv</span>.<span class="ident">as_slice</span>(), <span class="kw-2">&amp;</span>[<span class="string">&quot;hello&quot;</span>, <span class="string">&quot;world&quot;</span>, <span class="string">&quot;world&quot;</span>][..]);
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">tv</span> <span class="op">=</span> <span class="macro">tiny_vec</span><span class="macro">!</span>([<span class="ident">i32</span>; <span class="number">10</span>] <span class="op">=</span><span class="op">&gt;</span> <span class="number">1</span>, <span class="number">2</span>, <span class="number">3</span>, <span class="number">4</span>);
<span class="ident">tv</span>.<span class="ident">resize</span>(<span class="number">2</span>, <span class="number">0</span>);
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">tv</span>.<span class="ident">as_slice</span>(), <span class="kw-2">&amp;</span>[<span class="number">1</span>, <span class="number">2</span>][..]);</pre></div>
</div><h4 id="method.resize_with" class="method"><code>pub fn <a href="#method.resize_with" class="fnname">resize_with</a>&lt;F:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>() -&gt; A::<a class="type" href="../tinyvec/trait.Array.html#associatedtype.Item" title="type tinyvec::Array::Item">Item</a>&gt;(&amp;mut self, new_len: usize, f: F)</code><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#759-769" title="goto source code">[src]</a></h4><div class="docblock"><p>Resize the vec to the new length.</p>
<p>If it needs to be longer, it's filled with repeated calls to the provided
function. If it needs to be shorter, it's truncated.</p>
<h2 id="example-6" class="section-header"><a href="#example-6">Example</a></h2>
<div class="example-wrap"><pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">tinyvec</span>::<span class="kw-2">*</span>;
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">tv</span> <span class="op">=</span> <span class="macro">tiny_vec</span><span class="macro">!</span>([<span class="ident">i32</span>; <span class="number">3</span>] <span class="op">=</span><span class="op">&gt;</span> <span class="number">1</span>, <span class="number">2</span>, <span class="number">3</span>);
<span class="ident">tv</span>.<span class="ident">resize_with</span>(<span class="number">5</span>, <span class="ident">Default</span>::<span class="ident">default</span>);
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">tv</span>.<span class="ident">as_slice</span>(), <span class="kw-2">&amp;</span>[<span class="number">1</span>, <span class="number">2</span>, <span class="number">3</span>, <span class="number">0</span>, <span class="number">0</span>][..]);
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">tv</span> <span class="op">=</span> <span class="macro">tiny_vec</span><span class="macro">!</span>([<span class="ident">i32</span>; <span class="number">2</span>]);
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">p</span> <span class="op">=</span> <span class="number">1</span>;
<span class="ident">tv</span>.<span class="ident">resize_with</span>(<span class="number">4</span>, <span class="op">|</span><span class="op">|</span> {
<span class="ident">p</span> <span class="kw-2">*</span><span class="op">=</span> <span class="number">2</span>;
<span class="ident">p</span>
});
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">tv</span>.<span class="ident">as_slice</span>(), <span class="kw-2">&amp;</span>[<span class="number">2</span>, <span class="number">4</span>, <span class="number">8</span>, <span class="number">16</span>][..]);</pre></div>
</div><h4 id="method.split_off" class="method"><code>pub fn <a href="#method.split_off" class="fnname">split_off</a>(&amp;mut self, at: usize) -&gt; Self</code><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#789-794" title="goto source code">[src]</a></h4><div class="docblock"><p>Splits the collection at the point given.</p>
<ul>
<li><code>[0, at)</code> stays in this vec</li>
<li><code>[at, len)</code> ends up in the new vec.</li>
</ul>
<h2 id="panics-6" class="section-header"><a href="#panics-6">Panics</a></h2>
<ul>
<li>if at &gt; len</li>
</ul>
<h2 id="example-7" class="section-header"><a href="#example-7">Example</a></h2>
<div class="example-wrap"><pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">tinyvec</span>::<span class="kw-2">*</span>;
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">tv</span> <span class="op">=</span> <span class="macro">tiny_vec</span><span class="macro">!</span>([<span class="ident">i32</span>; <span class="number">4</span>] <span class="op">=</span><span class="op">&gt;</span> <span class="number">1</span>, <span class="number">2</span>, <span class="number">3</span>);
<span class="kw">let</span> <span class="ident">tv2</span> <span class="op">=</span> <span class="ident">tv</span>.<span class="ident">split_off</span>(<span class="number">1</span>);
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">tv</span>.<span class="ident">as_slice</span>(), <span class="kw-2">&amp;</span>[<span class="number">1</span>][..]);
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">tv2</span>.<span class="ident">as_slice</span>(), <span class="kw-2">&amp;</span>[<span class="number">2</span>, <span class="number">3</span>][..]);</pre></div>
</div><h4 id="method.splice" class="method"><code>pub fn <a href="#method.splice" class="fnname">splice</a>&lt;R, I&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self, <br>&nbsp;&nbsp;&nbsp;&nbsp;range: R, <br>&nbsp;&nbsp;&nbsp;&nbsp;replacement: I<br>) -&gt; <a class="struct" href="../tinyvec/struct.TinyVecSplice.html" title="struct tinyvec::TinyVecSplice">TinyVecSplice</a>&lt;'_, A, <a class="struct" href="https://doc.rust-lang.org/nightly/core/iter/adapters/fuse/struct.Fuse.html" title="struct core::iter::adapters::fuse::Fuse">Fuse</a>&lt;I::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter" title="type core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt;&gt;<span class="notable-traits"><span class="notable-traits-tooltip"><div class="notable-traits-tooltiptext"><span class="docblock"><h3 class="notable">Notable traits for <a class="struct" href="../tinyvec/struct.TinyVecSplice.html" title="struct tinyvec::TinyVecSplice">TinyVecSplice</a>&lt;'p, A, I&gt;</h3><code class="content"><span class="where fmt-newline">impl&lt;'p, A, I&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="../tinyvec/struct.TinyVecSplice.html" title="struct tinyvec::TinyVecSplice">TinyVecSplice</a>&lt;'p, A, I&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A: <a class="trait" href="../tinyvec/trait.Array.html" title="trait tinyvec::Array">Array</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;I: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a>&lt;Item = A::<a class="type" href="../tinyvec/trait.Array.html#associatedtype.Item" title="type tinyvec::Array::Item">Item</a>&gt;,&nbsp;</span></span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="type">Item</a> = A::<a class="type" href="../tinyvec/trait.Array.html#associatedtype.Item" title="type tinyvec::Array::Item">Item</a>;</span></code></span></div></span></span> <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;R: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/range/trait.RangeBounds.html" title="trait core::ops::range::RangeBounds">RangeBounds</a>&lt;usize&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;I: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item = A::<a class="type" href="../tinyvec/trait.Array.html#associatedtype.Item" title="type tinyvec::Array::Item">Item</a>&gt;,&nbsp;</span></code><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#820-857" title="goto source code">[src]</a></h4><div class="docblock"><p>Creates a splicing iterator that removes the specified range in the
vector, yields the removed items, and replaces them with elements from
the provided iterator.</p>
<p><code>splice</code> fuses the provided iterator, so elements after the first <code>None</code>
are ignored.</p>
<h2 id="panics-7" class="section-header"><a href="#panics-7">Panics</a></h2>
<ul>
<li>If the start is greater than the end.</li>
<li>If the end is past the edge of the vec.</li>
<li>If the provided iterator panics.</li>
</ul>
<h2 id="example-8" class="section-header"><a href="#example-8">Example</a></h2>
<div class="example-wrap"><pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">tinyvec</span>::<span class="kw-2">*</span>;
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">tv</span> <span class="op">=</span> <span class="macro">tiny_vec</span><span class="macro">!</span>([<span class="ident">i32</span>; <span class="number">4</span>] <span class="op">=</span><span class="op">&gt;</span> <span class="number">1</span>, <span class="number">2</span>, <span class="number">3</span>);
<span class="kw">let</span> <span class="ident">tv2</span>: <span class="ident">TinyVec</span><span class="op">&lt;</span>[<span class="ident">i32</span>; <span class="number">4</span>]<span class="op">&gt;</span> <span class="op">=</span> <span class="ident">tv</span>.<span class="ident">splice</span>(<span class="number">1</span>.., <span class="number">4</span>..<span class="op">=</span><span class="number">6</span>).<span class="ident">collect</span>();
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">tv</span>.<span class="ident">as_slice</span>(), <span class="kw-2">&amp;</span>[<span class="number">1</span>, <span class="number">4</span>, <span class="number">5</span>, <span class="number">6</span>][..]);
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">tv2</span>.<span class="ident">as_slice</span>(), <span class="kw-2">&amp;</span>[<span class="number">2</span>, <span class="number">3</span>][..]);
<span class="ident">tv</span>.<span class="ident">splice</span>(.., <span class="prelude-val">None</span>);
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">tv</span>.<span class="ident">as_slice</span>(), <span class="kw-2">&amp;</span>[]);</pre></div>
</div><h4 id="method.try_from_array_len" class="method"><code>pub fn <a href="#method.try_from_array_len" class="fnname">try_from_array_len</a>(data: A, len: usize) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self, A&gt;</code><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#869-872" title="goto source code">[src]</a></h4><div class="docblock"><p>Wraps an array, using the given length as the starting length.</p>
<p>If you want to use the whole length of the array, you can just use the
<code>From</code> impl.</p>
<h2 id="failure-1" class="section-header"><a href="#failure-1">Failure</a></h2>
<p>If the given length is greater than the capacity of the array this will
error, and you'll get the array back in the <code>Err</code>.</p>
</div></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><h3 id="impl-AsMut%3C%5B%3CA%20as%20Array%3E%3A%3AItem%5D%3E" class="impl"><code class="in-band">impl&lt;A:&nbsp;<a class="trait" href="../tinyvec/trait.Array.html" title="trait tinyvec::Array">Array</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsMut.html" title="trait core::convert::AsMut">AsMut</a>&lt;[&lt;A as <a class="trait" href="../tinyvec/trait.Array.html" title="trait tinyvec::Array">Array</a>&gt;::<a class="type" href="../tinyvec/trait.Array.html#associatedtype.Item" title="type tinyvec::Array::Item">Item</a>]&gt; for <a class="enum" href="../tinyvec/enum.TinyVec.html" title="enum tinyvec::TinyVec">TinyVec</a>&lt;A&gt;</code><a href="#impl-AsMut%3C%5B%3CA%20as%20Array%3E%3A%3AItem%5D%3E" class="anchor"></a><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#1036-1042" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.as_mut" class="method hidden"><code><span class="docblock attributes">#[must_use]</span>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsMut.html#tymethod.as_mut" class="fnname">as_mut</a>(&amp;mut self) -&gt; &amp;mut [A::<a class="type" href="../tinyvec/trait.Array.html#associatedtype.Item" title="type tinyvec::Array::Item">Item</a>]</code><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#1039-1041" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id="impl-AsRef%3C%5B%3CA%20as%20Array%3E%3A%3AItem%5D%3E" class="impl"><code class="in-band">impl&lt;A:&nbsp;<a class="trait" href="../tinyvec/trait.Array.html" title="trait tinyvec::Array">Array</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a>&lt;[&lt;A as <a class="trait" href="../tinyvec/trait.Array.html" title="trait tinyvec::Array">Array</a>&gt;::<a class="type" href="../tinyvec/trait.Array.html#associatedtype.Item" title="type tinyvec::Array::Item">Item</a>]&gt; for <a class="enum" href="../tinyvec/enum.TinyVec.html" title="enum tinyvec::TinyVec">TinyVec</a>&lt;A&gt;</code><a href="#impl-AsRef%3C%5B%3CA%20as%20Array%3E%3A%3AItem%5D%3E" class="anchor"></a><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#1044-1050" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.as_ref" class="method hidden"><code><span class="docblock attributes">#[must_use]</span>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref" class="fnname">as_ref</a>(&amp;self) -&gt; &amp;[A::<a class="type" href="../tinyvec/trait.Array.html#associatedtype.Item" title="type tinyvec::Array::Item">Item</a>]</code><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#1047-1049" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id="impl-Binary" class="impl"><code class="in-band">impl&lt;A:&nbsp;<a class="trait" href="../tinyvec/trait.Array.html" title="trait tinyvec::Array">Array</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Binary.html" title="trait core::fmt::Binary">Binary</a> for <a class="enum" href="../tinyvec/enum.TinyVec.html" title="enum tinyvec::TinyVec">TinyVec</a>&lt;A&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A::<a class="type" href="../tinyvec/trait.Array.html#associatedtype.Item" title="type tinyvec::Array::Item">Item</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Binary.html" title="trait core::fmt::Binary">Binary</a>,&nbsp;</span></code><a href="#impl-Binary" class="anchor"></a><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#1314-1329" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.fmt-5" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Binary.html#tymethod.fmt" class="fnname">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#1319-1328" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Formats the value using the given formatter.</p>
</div></div><h3 id="impl-Borrow%3C%5B%3CA%20as%20Array%3E%3A%3AItem%5D%3E" class="impl"><code class="in-band">impl&lt;A:&nbsp;<a class="trait" href="../tinyvec/trait.Array.html" title="trait tinyvec::Array">Array</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;[&lt;A as <a class="trait" href="../tinyvec/trait.Array.html" title="trait tinyvec::Array">Array</a>&gt;::<a class="type" href="../tinyvec/trait.Array.html#associatedtype.Item" title="type tinyvec::Array::Item">Item</a>]&gt; for <a class="enum" href="../tinyvec/enum.TinyVec.html" title="enum tinyvec::TinyVec">TinyVec</a>&lt;A&gt;</code><a href="#impl-Borrow%3C%5B%3CA%20as%20Array%3E%3A%3AItem%5D%3E" class="anchor"></a><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#1052-1058" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.borrow" class="method hidden"><code><span class="docblock attributes">#[must_use]</span>fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow" class="fnname">borrow</a>(&amp;self) -&gt; &amp;[A::<a class="type" href="../tinyvec/trait.Array.html#associatedtype.Item" title="type tinyvec::Array::Item">Item</a>]</code><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#1055-1057" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
</div></div><h3 id="impl-BorrowMut%3C%5B%3CA%20as%20Array%3E%3A%3AItem%5D%3E" class="impl"><code class="in-band">impl&lt;A:&nbsp;<a class="trait" href="../tinyvec/trait.Array.html" title="trait tinyvec::Array">Array</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a>&lt;[&lt;A as <a class="trait" href="../tinyvec/trait.Array.html" title="trait tinyvec::Array">Array</a>&gt;::<a class="type" href="../tinyvec/trait.Array.html#associatedtype.Item" title="type tinyvec::Array::Item">Item</a>]&gt; for <a class="enum" href="../tinyvec/enum.TinyVec.html" title="enum tinyvec::TinyVec">TinyVec</a>&lt;A&gt;</code><a href="#impl-BorrowMut%3C%5B%3CA%20as%20Array%3E%3A%3AItem%5D%3E" class="anchor"></a><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#1060-1066" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.borrow_mut" class="method hidden"><code><span class="docblock attributes">#[must_use]</span>fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fnname">borrow_mut</a>(&amp;mut self) -&gt; &amp;mut [A::<a class="type" href="../tinyvec/trait.Array.html#associatedtype.Item" title="type tinyvec::Array::Item">Item</a>]</code><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#1063-1065" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
</div></div><h3 id="impl-Clone" class="impl"><code class="in-band">impl&lt;A:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="../tinyvec/trait.Array.html" title="trait tinyvec::Array">Array</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="enum" href="../tinyvec/enum.TinyVec.html" title="enum tinyvec::TinyVec">TinyVec</a>&lt;A&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A::<a class="type" href="../tinyvec/trait.Array.html#associatedtype.Item" title="type tinyvec::Array::Item">Item</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,&nbsp;</span></code><a href="#impl-Clone" class="anchor"></a><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#93" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.clone" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&amp;self) -&gt; <a class="enum" href="../tinyvec/enum.TinyVec.html" title="enum tinyvec::TinyVec">TinyVec</a>&lt;A&gt;</code><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#93" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
</div><h4 id="method.clone_from" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&amp;mut self, source: &amp;Self)</code><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/clone.rs.html#128" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
</div></div><h3 id="impl-Debug" class="impl"><code class="in-band">impl&lt;A:&nbsp;<a class="trait" href="../tinyvec/trait.Array.html" title="trait tinyvec::Array">Array</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="enum" href="../tinyvec/enum.TinyVec.html" title="enum tinyvec::TinyVec">TinyVec</a>&lt;A&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A::<a class="type" href="../tinyvec/trait.Array.html#associatedtype.Item" title="type tinyvec::Array::Item">Item</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>,&nbsp;</span></code><a href="#impl-Debug" class="anchor"></a><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#1331-1346" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.fmt" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#1336-1345" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
</div></div><h3 id="impl-Default" class="impl"><code class="in-band">impl&lt;A:&nbsp;<a class="trait" href="../tinyvec/trait.Array.html" title="trait tinyvec::Array">Array</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html" title="trait core::default::Default">Default</a> for <a class="enum" href="../tinyvec/enum.TinyVec.html" title="enum tinyvec::TinyVec">TinyVec</a>&lt;A&gt;</code><a href="#impl-Default" class="anchor"></a><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#102-108" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.default" class="method hidden"><code><span class="docblock attributes">#[must_use]</span>fn <a href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default" class="fnname">default</a>() -&gt; Self</code><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#105-107" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Returns the &quot;default value&quot; for a type. <a href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default">Read more</a></p>
</div></div><h3 id="impl-Deref" class="impl"><code class="in-band">impl&lt;A:&nbsp;<a class="trait" href="../tinyvec/trait.Array.html" title="trait tinyvec::Array">Array</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a> for <a class="enum" href="../tinyvec/enum.TinyVec.html" title="enum tinyvec::TinyVec">TinyVec</a>&lt;A&gt;</code><a href="#impl-Deref" class="anchor"></a><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#110-119" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="associatedtype.Target" class="type"><code>type <a href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html#associatedtype.Target" class="type">Target</a> = [A::<a class="type" href="../tinyvec/trait.Array.html#associatedtype.Item" title="type tinyvec::Array::Item">Item</a>]</code></h4><div class='docblock'><p>The resulting type after dereferencing.</p>
</div><h4 id="method.deref" class="method hidden"><code><span class="docblock attributes">#[must_use]</span>fn <a href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html#tymethod.deref" class="fnname">deref</a>(&amp;self) -&gt; &amp;Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html#associatedtype.Target" title="type core::ops::deref::Deref::Target">Target</a></code><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#113-118" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Dereferences the value.</p>
</div></div><h3 id="impl-DerefMut" class="impl"><code class="in-band">impl&lt;A:&nbsp;<a class="trait" href="../tinyvec/trait.Array.html" title="trait tinyvec::Array">Array</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.DerefMut.html" title="trait core::ops::deref::DerefMut">DerefMut</a> for <a class="enum" href="../tinyvec/enum.TinyVec.html" title="enum tinyvec::TinyVec">TinyVec</a>&lt;A&gt;</code><a href="#impl-DerefMut" class="anchor"></a><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#121-128" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.deref_mut" class="method hidden"><code><span class="docblock attributes">#[must_use]</span>fn <a href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.DerefMut.html#tymethod.deref_mut" class="fnname">deref_mut</a>(&amp;mut self) -&gt; &amp;mut Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html#associatedtype.Target" title="type core::ops::deref::Deref::Target">Target</a></code><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#122-127" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Mutably dereferences the value.</p>
</div></div><h3 id="impl-Display" class="impl"><code class="in-band">impl&lt;A:&nbsp;<a class="trait" href="../tinyvec/trait.Array.html" title="trait tinyvec::Array">Array</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> for <a class="enum" href="../tinyvec/enum.TinyVec.html" title="enum tinyvec::TinyVec">TinyVec</a>&lt;A&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A::<a class="type" href="../tinyvec/trait.Array.html#associatedtype.Item" title="type tinyvec::Array::Item">Item</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a>,&nbsp;</span></code><a href="#impl-Display" class="anchor"></a><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#1348-1363" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.fmt-1" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html#tymethod.fmt" class="fnname">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#1353-1362" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html#tymethod.fmt">Read more</a></p>
</div></div><h3 id="impl-Eq" class="impl"><code class="in-band">impl&lt;A:&nbsp;<a class="trait" href="../tinyvec/trait.Array.html" title="trait tinyvec::Array">Array</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> for <a class="enum" href="../tinyvec/enum.TinyVec.html" title="enum tinyvec::TinyVec">TinyVec</a>&lt;A&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A::<a class="type" href="../tinyvec/trait.Array.html#associatedtype.Item" title="type tinyvec::Array::Item">Item</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a>,&nbsp;</span></code><a href="#impl-Eq" class="anchor"></a><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#1255" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-Extend%3C%3CA%20as%20Array%3E%3A%3AItem%3E" class="impl"><code class="in-band">impl&lt;A:&nbsp;<a class="trait" href="../tinyvec/trait.Array.html" title="trait tinyvec::Array">Array</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.Extend.html" title="trait core::iter::traits::collect::Extend">Extend</a>&lt;&lt;A as <a class="trait" href="../tinyvec/trait.Array.html" title="trait tinyvec::Array">Array</a>&gt;::<a class="type" href="../tinyvec/trait.Array.html#associatedtype.Item" title="type tinyvec::Array::Item">Item</a>&gt; for <a class="enum" href="../tinyvec/enum.TinyVec.html" title="enum tinyvec::TinyVec">TinyVec</a>&lt;A&gt;</code><a href="#impl-Extend%3C%3CA%20as%20Array%3E%3A%3AItem%3E" class="anchor"></a><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#1068-1093" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.extend" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.Extend.html#tymethod.extend" class="fnname">extend</a>&lt;T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item = A::<a class="type" href="../tinyvec/trait.Array.html#associatedtype.Item" title="type tinyvec::Array::Item">Item</a>&gt;&gt;(&amp;mut self, iter: T)</code><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#1070-1092" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Extends a collection with the contents of an iterator. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.Extend.html#tymethod.extend">Read more</a></p>
</div><h4 id="method.extend_one" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.Extend.html#method.extend_one" class="fnname">extend_one</a>(&amp;mut self, item: A)</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/collect.rs.html#340" title="goto source code">[src]</a></h4><div class="item-info hidden"><div class="stab unstable"><span class="emoji">🔬</span> This is a nightly-only experimental API. (<code>extend_one</code>)</div></div><div class='docblock hidden'><p>Extends a collection with exactly one element.</p>
</div><h4 id="method.extend_reserve" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.Extend.html#method.extend_reserve" class="fnname">extend_reserve</a>(&amp;mut self, additional: usize)</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/collect.rs.html#348" title="goto source code">[src]</a></h4><div class="item-info hidden"><div class="stab unstable"><span class="emoji">🔬</span> This is a nightly-only experimental API. (<code>extend_one</code>)</div></div><div class='docblock hidden'><p>Reserves capacity in a collection for the given number of additional elements. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.Extend.html#method.extend_reserve">Read more</a></p>
</div></div><h3 id="impl-From%3C%26%27_%20%5BT%5D%3E" class="impl"><code class="in-band">impl&lt;T, A&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;&amp;'_ [T]&gt; for <a class="enum" href="../tinyvec/enum.TinyVec.html" title="enum tinyvec::TinyVec">TinyVec</a>&lt;A&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html" title="trait core::default::Default">Default</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;A: <a class="trait" href="../tinyvec/trait.Array.html" title="trait tinyvec::Array">Array</a>&lt;Item = T&gt;,&nbsp;</span></code><a href="#impl-From%3C%26%27_%20%5BT%5D%3E" class="anchor"></a><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#1109-1133" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.from-2" class="method hidden"><code><span class="docblock attributes">#[must_use]</span>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(slice: &amp;[T]) -&gt; Self</code><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#1116-1132" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id="impl-From%3C%26%27_%20mut%20%5BT%5D%3E" class="impl"><code class="in-band">impl&lt;T, A&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;&amp;'_ mut [T]&gt; for <a class="enum" href="../tinyvec/enum.TinyVec.html" title="enum tinyvec::TinyVec">TinyVec</a>&lt;A&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html" title="trait core::default::Default">Default</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;A: <a class="trait" href="../tinyvec/trait.Array.html" title="trait tinyvec::Array">Array</a>&lt;Item = T&gt;,&nbsp;</span></code><a href="#impl-From%3C%26%27_%20mut%20%5BT%5D%3E" class="anchor"></a><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#1135-1145" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.from-3" class="method hidden"><code><span class="docblock attributes">#[must_use]</span>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(slice: &amp;mut [T]) -&gt; Self</code><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#1142-1144" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id="impl-From%3CA%3E" class="impl"><code class="in-band">impl&lt;A:&nbsp;<a class="trait" href="../tinyvec/trait.Array.html" title="trait tinyvec::Array">Array</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;A&gt; for <a class="enum" href="../tinyvec/enum.TinyVec.html" title="enum tinyvec::TinyVec">TinyVec</a>&lt;A&gt;</code><a href="#impl-From%3CA%3E" class="anchor"></a><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#1103-1107" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.from-1" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(array: A) -&gt; Self</code><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#1104-1106" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id="impl-From%3CArrayVec%3CA%3E%3E" class="impl"><code class="in-band">impl&lt;A:&nbsp;<a class="trait" href="../tinyvec/trait.Array.html" title="trait tinyvec::Array">Array</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../tinyvec/struct.ArrayVec.html" title="struct tinyvec::ArrayVec">ArrayVec</a>&lt;A&gt;&gt; for <a class="enum" href="../tinyvec/enum.TinyVec.html" title="enum tinyvec::TinyVec">TinyVec</a>&lt;A&gt;</code><a href="#impl-From%3CArrayVec%3CA%3E%3E" class="anchor"></a><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#1095-1101" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.from" class="method hidden"><code><span class="docblock attributes">#[must_use]</span>fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(arr: <a class="struct" href="../tinyvec/struct.ArrayVec.html" title="struct tinyvec::ArrayVec">ArrayVec</a>&lt;A&gt;) -&gt; Self</code><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#1098-1100" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id="impl-FromIterator%3C%3CA%20as%20Array%3E%3A%3AItem%3E" class="impl"><code class="in-band">impl&lt;A:&nbsp;<a class="trait" href="../tinyvec/trait.Array.html" title="trait tinyvec::Array">Array</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.FromIterator.html" title="trait core::iter::traits::collect::FromIterator">FromIterator</a>&lt;&lt;A as <a class="trait" href="../tinyvec/trait.Array.html" title="trait tinyvec::Array">Array</a>&gt;::<a class="type" href="../tinyvec/trait.Array.html#associatedtype.Item" title="type tinyvec::Array::Item">Item</a>&gt; for <a class="enum" href="../tinyvec/enum.TinyVec.html" title="enum tinyvec::TinyVec">TinyVec</a>&lt;A&gt;</code><a href="#impl-FromIterator%3C%3CA%20as%20Array%3E%3A%3AItem%3E" class="anchor"></a><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#1147-1155" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.from_iter" class="method hidden"><code><span class="docblock attributes">#[must_use]</span>fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.FromIterator.html#tymethod.from_iter" class="fnname">from_iter</a>&lt;T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item = A::<a class="type" href="../tinyvec/trait.Array.html#associatedtype.Item" title="type tinyvec::Array::Item">Item</a>&gt;&gt;(iter: T) -&gt; Self</code><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#1150-1154" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Creates a value from an iterator. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.FromIterator.html#tymethod.from_iter">Read more</a></p>
</div></div><h3 id="impl-Hash" class="impl"><code class="in-band">impl&lt;A:&nbsp;<a class="trait" href="../tinyvec/trait.Array.html" title="trait tinyvec::Array">Array</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> for <a class="enum" href="../tinyvec/enum.TinyVec.html" title="enum tinyvec::TinyVec">TinyVec</a>&lt;A&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A::<a class="type" href="../tinyvec/trait.Array.html#associatedtype.Item" title="type tinyvec::Array::Item">Item</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a>,&nbsp;</span></code><a href="#impl-Hash" class="anchor"></a><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#1300-1308" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.hash" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#tymethod.hash" class="fnname">hash</a>&lt;H:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html" title="trait core::hash::Hasher">Hasher</a>&gt;(&amp;self, state: &amp;mut H)</code><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#1305-1307" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Feeds this value into the given <a href="https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#tymethod.hash">Read more</a></p>
</div><h4 id="method.hash_slice" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#method.hash_slice" class="fnname">hash_slice</a>&lt;H&gt;(data: &amp;[Self], state: &amp;mut H) <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;H: <a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html" title="trait core::hash::Hasher">Hasher</a>,&nbsp;</span></code><span class="since" title="Stable since Rust version 1.3.0">1.3.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/hash/mod.rs.html#184-186" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Feeds a slice of this type into the given <a href="https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html" title="Hasher"><code>Hasher</code></a>. <a href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#method.hash_slice">Read more</a></p>
</div></div><h3 id="impl-Index%3CI%3E" class="impl"><code class="in-band">impl&lt;A:&nbsp;<a class="trait" href="../tinyvec/trait.Array.html" title="trait tinyvec::Array">Array</a>, I:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/slice/index/trait.SliceIndex.html" title="trait core::slice::index::SliceIndex">SliceIndex</a>&lt;[A::<a class="type" href="../tinyvec/trait.Array.html#associatedtype.Item" title="type tinyvec::Array::Item">Item</a>]&gt;&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/index/trait.Index.html" title="trait core::ops::index::Index">Index</a>&lt;I&gt; for <a class="enum" href="../tinyvec/enum.TinyVec.html" title="enum tinyvec::TinyVec">TinyVec</a>&lt;A&gt;</code><a href="#impl-Index%3CI%3E" class="anchor"></a><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#130-137" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="associatedtype.Output" class="type"><code>type <a href="https://doc.rust-lang.org/nightly/core/ops/index/trait.Index.html#associatedtype.Output" class="type">Output</a> = &lt;I as <a class="trait" href="https://doc.rust-lang.org/nightly/core/slice/index/trait.SliceIndex.html" title="trait core::slice::index::SliceIndex">SliceIndex</a>&lt;[A::<a class="type" href="../tinyvec/trait.Array.html#associatedtype.Item" title="type tinyvec::Array::Item">Item</a>]&gt;&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/slice/index/trait.SliceIndex.html#associatedtype.Output" title="type core::slice::index::SliceIndex::Output">Output</a></code></h4><div class='docblock'><p>The returned type after indexing.</p>
</div><h4 id="method.index" class="method hidden"><code><span class="docblock attributes">#[must_use]</span>fn <a href="https://doc.rust-lang.org/nightly/core/ops/index/trait.Index.html#tymethod.index" class="fnname">index</a>(&amp;self, index: I) -&gt; &amp;Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/ops/index/trait.Index.html#associatedtype.Output" title="type core::ops::index::Index::Output">Output</a></code><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#134-136" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the indexing (<code>container[index]</code>) operation.</p>
</div></div><h3 id="impl-IndexMut%3CI%3E" class="impl"><code class="in-band">impl&lt;A:&nbsp;<a class="trait" href="../tinyvec/trait.Array.html" title="trait tinyvec::Array">Array</a>, I:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/slice/index/trait.SliceIndex.html" title="trait core::slice::index::SliceIndex">SliceIndex</a>&lt;[A::<a class="type" href="../tinyvec/trait.Array.html#associatedtype.Item" title="type tinyvec::Array::Item">Item</a>]&gt;&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/index/trait.IndexMut.html" title="trait core::ops::index::IndexMut">IndexMut</a>&lt;I&gt; for <a class="enum" href="../tinyvec/enum.TinyVec.html" title="enum tinyvec::TinyVec">TinyVec</a>&lt;A&gt;</code><a href="#impl-IndexMut%3CI%3E" class="anchor"></a><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#139-145" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.index_mut" class="method hidden"><code><span class="docblock attributes">#[must_use]</span>fn <a href="https://doc.rust-lang.org/nightly/core/ops/index/trait.IndexMut.html#tymethod.index_mut" class="fnname">index_mut</a>(&amp;mut self, index: I) -&gt; &amp;mut Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/ops/index/trait.Index.html#associatedtype.Output" title="type core::ops::index::Index::Output">Output</a></code><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#142-144" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the mutable indexing (<code>container[index]</code>) operation.</p>
</div></div><h3 id="impl-IntoIterator" class="impl"><code class="in-band">impl&lt;A:&nbsp;<a class="trait" href="../tinyvec/trait.Array.html" title="trait tinyvec::Array">Array</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a> for <a class="enum" href="../tinyvec/enum.TinyVec.html" title="enum tinyvec::TinyVec">TinyVec</a>&lt;A&gt;</code><a href="#impl-IntoIterator" class="anchor"></a><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#1212-1223" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="associatedtype.Item" class="type"><code>type <a href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item" class="type">Item</a> = A::<a class="type" href="../tinyvec/trait.Array.html#associatedtype.Item" title="type tinyvec::Array::Item">Item</a></code></h4><div class='docblock'><p>The type of the elements being iterated over.</p>
</div><h4 id="associatedtype.IntoIter" class="type"><code>type <a href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter" class="type">IntoIter</a> = <a class="enum" href="../tinyvec/enum.TinyVecIterator.html" title="enum tinyvec::TinyVecIterator">TinyVecIterator</a>&lt;A&gt;</code></h4><div class='docblock'><p>Which kind of iterator are we turning this into?</p>
</div><h4 id="method.into_iter" class="method hidden"><code><span class="docblock attributes">#[must_use]</span>fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter" class="fnname">into_iter</a>(self) -&gt; Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter" title="type core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a></code><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#1217-1222" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Creates an iterator from a value. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter">Read more</a></p>
</div></div><h3 id="impl-IntoIterator-1" class="impl"><code class="in-band">impl&lt;'a, A:&nbsp;<a class="trait" href="../tinyvec/trait.Array.html" title="trait tinyvec::Array">Array</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a> for &amp;'a mut <a class="enum" href="../tinyvec/enum.TinyVec.html" title="enum tinyvec::TinyVec">TinyVec</a>&lt;A&gt;</code><a href="#impl-IntoIterator-1" class="anchor"></a><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#1225-1233" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="associatedtype.Item-1" class="type"><code>type <a href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item" class="type">Item</a> = &amp;'a mut A::<a class="type" href="../tinyvec/trait.Array.html#associatedtype.Item" title="type tinyvec::Array::Item">Item</a></code></h4><div class='docblock'><p>The type of the elements being iterated over.</p>
</div><h4 id="associatedtype.IntoIter-1" class="type"><code>type <a href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter" class="type">IntoIter</a> = <a class="struct" href="https://doc.rust-lang.org/nightly/core/slice/iter/struct.IterMut.html" title="struct core::slice::iter::IterMut">IterMut</a>&lt;'a, A::<a class="type" href="../tinyvec/trait.Array.html#associatedtype.Item" title="type tinyvec::Array::Item">Item</a>&gt;</code></h4><div class='docblock'><p>Which kind of iterator are we turning this into?</p>
</div><h4 id="method.into_iter-1" class="method hidden"><code><span class="docblock attributes">#[must_use]</span>fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter" class="fnname">into_iter</a>(self) -&gt; Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter" title="type core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a></code><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#1230-1232" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Creates an iterator from a value. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter">Read more</a></p>
</div></div><h3 id="impl-IntoIterator-2" class="impl"><code class="in-band">impl&lt;'a, A:&nbsp;<a class="trait" href="../tinyvec/trait.Array.html" title="trait tinyvec::Array">Array</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a> for &amp;'a <a class="enum" href="../tinyvec/enum.TinyVec.html" title="enum tinyvec::TinyVec">TinyVec</a>&lt;A&gt;</code><a href="#impl-IntoIterator-2" class="anchor"></a><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#1235-1243" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="associatedtype.Item-2" class="type"><code>type <a href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item" class="type">Item</a> = &amp;'a A::<a class="type" href="../tinyvec/trait.Array.html#associatedtype.Item" title="type tinyvec::Array::Item">Item</a></code></h4><div class='docblock'><p>The type of the elements being iterated over.</p>
</div><h4 id="associatedtype.IntoIter-2" class="type"><code>type <a href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter" class="type">IntoIter</a> = <a class="struct" href="https://doc.rust-lang.org/nightly/core/slice/iter/struct.Iter.html" title="struct core::slice::iter::Iter">Iter</a>&lt;'a, A::<a class="type" href="../tinyvec/trait.Array.html#associatedtype.Item" title="type tinyvec::Array::Item">Item</a>&gt;</code></h4><div class='docblock'><p>Which kind of iterator are we turning this into?</p>
</div><h4 id="method.into_iter-2" class="method hidden"><code><span class="docblock attributes">#[must_use]</span>fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter" class="fnname">into_iter</a>(self) -&gt; Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter" title="type core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a></code><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#1240-1242" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Creates an iterator from a value. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter">Read more</a></p>
</div></div><h3 id="impl-LowerExp" class="impl"><code class="in-band">impl&lt;A:&nbsp;<a class="trait" href="../tinyvec/trait.Array.html" title="trait tinyvec::Array">Array</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.LowerExp.html" title="trait core::fmt::LowerExp">LowerExp</a> for <a class="enum" href="../tinyvec/enum.TinyVec.html" title="enum tinyvec::TinyVec">TinyVec</a>&lt;A&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A::<a class="type" href="../tinyvec/trait.Array.html#associatedtype.Item" title="type tinyvec::Array::Item">Item</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.LowerExp.html" title="trait core::fmt::LowerExp">LowerExp</a>,&nbsp;</span></code><a href="#impl-LowerExp" class="anchor"></a><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#1365-1380" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.fmt-2" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.LowerExp.html#tymethod.fmt" class="fnname">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#1370-1379" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Formats the value using the given formatter.</p>
</div></div><h3 id="impl-LowerHex" class="impl"><code class="in-band">impl&lt;A:&nbsp;<a class="trait" href="../tinyvec/trait.Array.html" title="trait tinyvec::Array">Array</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.LowerHex.html" title="trait core::fmt::LowerHex">LowerHex</a> for <a class="enum" href="../tinyvec/enum.TinyVec.html" title="enum tinyvec::TinyVec">TinyVec</a>&lt;A&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A::<a class="type" href="../tinyvec/trait.Array.html#associatedtype.Item" title="type tinyvec::Array::Item">Item</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.LowerHex.html" title="trait core::fmt::LowerHex">LowerHex</a>,&nbsp;</span></code><a href="#impl-LowerHex" class="anchor"></a><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#1382-1397" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.fmt-6" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.LowerHex.html#tymethod.fmt" class="fnname">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#1387-1396" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Formats the value using the given formatter.</p>
</div></div><h3 id="impl-Octal" class="impl"><code class="in-band">impl&lt;A:&nbsp;<a class="trait" href="../tinyvec/trait.Array.html" title="trait tinyvec::Array">Array</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Octal.html" title="trait core::fmt::Octal">Octal</a> for <a class="enum" href="../tinyvec/enum.TinyVec.html" title="enum tinyvec::TinyVec">TinyVec</a>&lt;A&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A::<a class="type" href="../tinyvec/trait.Array.html#associatedtype.Item" title="type tinyvec::Array::Item">Item</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Octal.html" title="trait core::fmt::Octal">Octal</a>,&nbsp;</span></code><a href="#impl-Octal" class="anchor"></a><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#1399-1414" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.fmt-4" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Octal.html#tymethod.fmt" class="fnname">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#1404-1413" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Formats the value using the given formatter.</p>
</div></div><h3 id="impl-Ord" class="impl"><code class="in-band">impl&lt;A:&nbsp;<a class="trait" href="../tinyvec/trait.Array.html" title="trait tinyvec::Array">Array</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a> for <a class="enum" href="../tinyvec/enum.TinyVec.html" title="enum tinyvec::TinyVec">TinyVec</a>&lt;A&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A::<a class="type" href="../tinyvec/trait.Array.html#associatedtype.Item" title="type tinyvec::Array::Item">Item</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a>,&nbsp;</span></code><a href="#impl-Ord" class="anchor"></a><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#1267-1276" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.cmp" class="method hidden"><code><span class="docblock attributes">#[must_use]</span>fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#tymethod.cmp" class="fnname">cmp</a>(&amp;self, other: &amp;Self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/cmp/enum.Ordering.html" title="enum core::cmp::Ordering">Ordering</a></code><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#1273-1275" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>This method returns an <a href="https://doc.rust-lang.org/nightly/core/cmp/enum.Ordering.html" title="Ordering"><code>Ordering</code></a> between <code>self</code> and <code>other</code>. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#tymethod.cmp">Read more</a></p>
</div><h4 id="method.max" class="method hidden"><code><span class="docblock attributes">#[must_use]</span>pub fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.max" class="fnname">max</a>(self, other: Self) -&gt; Self</code><span class="since" title="Stable since Rust version 1.21.0">1.21.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#723-725" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Compares and returns the maximum of two values. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.max">Read more</a></p>
</div><h4 id="method.min" class="method hidden"><code><span class="docblock attributes">#[must_use]</span>pub fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.min" class="fnname">min</a>(self, other: Self) -&gt; Self</code><span class="since" title="Stable since Rust version 1.21.0">1.21.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#743-745" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Compares and returns the minimum of two values. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.min">Read more</a></p>
</div><h4 id="method.clamp" class="method hidden"><code><span class="docblock attributes">#[must_use]</span>pub fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.clamp" class="fnname">clamp</a>(self, min: Self, max: Self) -&gt; Self</code><span class="since" title="Stable since Rust version 1.50.0">1.50.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#768-770" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Restrict a value to a certain interval. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.clamp">Read more</a></p>
</div></div><h3 id="impl-PartialEq%3C%26%27_%20%5B%3CA%20as%20Array%3E%3A%3AItem%5D%3E" class="impl"><code class="in-band">impl&lt;A:&nbsp;<a class="trait" href="../tinyvec/trait.Array.html" title="trait tinyvec::Array">Array</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>&lt;&amp;'_ [&lt;A as <a class="trait" href="../tinyvec/trait.Array.html" title="trait tinyvec::Array">Array</a>&gt;::<a class="type" href="../tinyvec/trait.Array.html#associatedtype.Item" title="type tinyvec::Array::Item">Item</a>]&gt; for <a class="enum" href="../tinyvec/enum.TinyVec.html" title="enum tinyvec::TinyVec">TinyVec</a>&lt;A&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A::<a class="type" href="../tinyvec/trait.Array.html#associatedtype.Item" title="type tinyvec::Array::Item">Item</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>,&nbsp;</span></code><a href="#impl-PartialEq%3C%26%27_%20%5B%3CA%20as%20Array%3E%3A%3AItem%5D%3E" class="anchor"></a><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#1289-1298" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.eq-2" class="method hidden"><code><span class="docblock attributes">#[must_use]</span>fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq" class="fnname">eq</a>(&amp;self, other: &amp;&amp;[A::<a class="type" href="../tinyvec/trait.Array.html#associatedtype.Item" title="type tinyvec::Array::Item">Item</a>]) -&gt; bool</code><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#1295-1297" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used
by <code>==</code>. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
</div><h4 id="method.ne-2" class="method hidden"><code><span class="docblock attributes">#[must_use]</span>pub fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#method.ne" class="fnname">ne</a>(&amp;self, other: &amp;Rhs) -&gt; bool</code><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#213" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>This method tests for <code>!=</code>.</p>
</div></div><h3 id="impl-PartialEq%3C%26%27_%20A%3E" class="impl"><code class="in-band">impl&lt;A:&nbsp;<a class="trait" href="../tinyvec/trait.Array.html" title="trait tinyvec::Array">Array</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>&lt;&amp;'_ A&gt; for <a class="enum" href="../tinyvec/enum.TinyVec.html" title="enum tinyvec::TinyVec">TinyVec</a>&lt;A&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A::<a class="type" href="../tinyvec/trait.Array.html#associatedtype.Item" title="type tinyvec::Array::Item">Item</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>,&nbsp;</span></code><a href="#impl-PartialEq%3C%26%27_%20A%3E" class="anchor"></a><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#1278-1287" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.eq-1" class="method hidden"><code><span class="docblock attributes">#[must_use]</span>fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq" class="fnname">eq</a>(&amp;self, other: &amp;&amp;A) -&gt; bool</code><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#1284-1286" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used
by <code>==</code>. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
</div><h4 id="method.ne-1" class="method hidden"><code><span class="docblock attributes">#[must_use]</span>pub fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#method.ne" class="fnname">ne</a>(&amp;self, other: &amp;Rhs) -&gt; bool</code><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#213" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>This method tests for <code>!=</code>.</p>
</div></div><h3 id="impl-PartialEq%3CTinyVec%3CA%3E%3E" class="impl"><code class="in-band">impl&lt;A:&nbsp;<a class="trait" href="../tinyvec/trait.Array.html" title="trait tinyvec::Array">Array</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>&lt;<a class="enum" href="../tinyvec/enum.TinyVec.html" title="enum tinyvec::TinyVec">TinyVec</a>&lt;A&gt;&gt; for <a class="enum" href="../tinyvec/enum.TinyVec.html" title="enum tinyvec::TinyVec">TinyVec</a>&lt;A&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A::<a class="type" href="../tinyvec/trait.Array.html#associatedtype.Item" title="type tinyvec::Array::Item">Item</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>,&nbsp;</span></code><a href="#impl-PartialEq%3CTinyVec%3CA%3E%3E" class="anchor"></a><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#1245-1254" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.eq" class="method hidden"><code><span class="docblock attributes">#[must_use]</span>fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq" class="fnname">eq</a>(&amp;self, other: &amp;Self) -&gt; bool</code><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#1251-1253" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used
by <code>==</code>. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
</div><h4 id="method.ne" class="method hidden"><code><span class="docblock attributes">#[must_use]</span>pub fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#method.ne" class="fnname">ne</a>(&amp;self, other: &amp;Rhs) -&gt; bool</code><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#213" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>This method tests for <code>!=</code>.</p>
</div></div><h3 id="impl-PartialOrd%3CTinyVec%3CA%3E%3E" class="impl"><code class="in-band">impl&lt;A:&nbsp;<a class="trait" href="../tinyvec/trait.Array.html" title="trait tinyvec::Array">Array</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html" title="trait core::cmp::PartialOrd">PartialOrd</a>&lt;<a class="enum" href="../tinyvec/enum.TinyVec.html" title="enum tinyvec::TinyVec">TinyVec</a>&lt;A&gt;&gt; for <a class="enum" href="../tinyvec/enum.TinyVec.html" title="enum tinyvec::TinyVec">TinyVec</a>&lt;A&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A::<a class="type" href="../tinyvec/trait.Array.html#associatedtype.Item" title="type tinyvec::Array::Item">Item</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html" title="trait core::cmp::PartialOrd">PartialOrd</a>,&nbsp;</span></code><a href="#impl-PartialOrd%3CTinyVec%3CA%3E%3E" class="anchor"></a><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#1257-1266" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.partial_cmp" class="method hidden"><code><span class="docblock attributes">#[must_use]</span>fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#tymethod.partial_cmp" class="fnname">partial_cmp</a>(&amp;self, other: &amp;Self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/cmp/enum.Ordering.html" title="enum core::cmp::Ordering">Ordering</a>&gt;</code><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#1263-1265" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>This method returns an ordering between <code>self</code> and <code>other</code> values if one exists. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#tymethod.partial_cmp">Read more</a></p>
</div><h4 id="method.lt" class="method hidden"><code><span class="docblock attributes">#[must_use]</span>pub fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.lt" class="fnname">lt</a>(&amp;self, other: &amp;Rhs) -&gt; bool</code><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#963" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>This method tests less than (for <code>self</code> and <code>other</code>) and is used by the <code>&lt;</code> operator. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.lt">Read more</a></p>
</div><h4 id="method.le" class="method hidden"><code><span class="docblock attributes">#[must_use]</span>pub fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.le" class="fnname">le</a>(&amp;self, other: &amp;Rhs) -&gt; bool</code><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#982" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>This method tests less than or equal to (for <code>self</code> and <code>other</code>) and is used by the <code>&lt;=</code>
operator. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.le">Read more</a></p>
</div><h4 id="method.gt" class="method hidden"><code><span class="docblock attributes">#[must_use]</span>pub fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.gt" class="fnname">gt</a>(&amp;self, other: &amp;Rhs) -&gt; bool</code><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#1000" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>This method tests greater than (for <code>self</code> and <code>other</code>) and is used by the <code>&gt;</code> operator. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.gt">Read more</a></p>
</div><h4 id="method.ge" class="method hidden"><code><span class="docblock attributes">#[must_use]</span>pub fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.ge" class="fnname">ge</a>(&amp;self, other: &amp;Rhs) -&gt; bool</code><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#1019" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>This method tests greater than or equal to (for <code>self</code> and <code>other</code>) and is used by the <code>&gt;=</code>
operator. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.ge">Read more</a></p>
</div></div><h3 id="impl-Pointer" class="impl"><code class="in-band">impl&lt;A:&nbsp;<a class="trait" href="../tinyvec/trait.Array.html" title="trait tinyvec::Array">Array</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Pointer.html" title="trait core::fmt::Pointer">Pointer</a> for <a class="enum" href="../tinyvec/enum.TinyVec.html" title="enum tinyvec::TinyVec">TinyVec</a>&lt;A&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A::<a class="type" href="../tinyvec/trait.Array.html#associatedtype.Item" title="type tinyvec::Array::Item">Item</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Pointer.html" title="trait core::fmt::Pointer">Pointer</a>,&nbsp;</span></code><a href="#impl-Pointer" class="anchor"></a><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#1416-1431" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.fmt-8" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Pointer.html#tymethod.fmt" class="fnname">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#1421-1430" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Formats the value using the given formatter.</p>
</div></div><h3 id="impl-UpperExp" class="impl"><code class="in-band">impl&lt;A:&nbsp;<a class="trait" href="../tinyvec/trait.Array.html" title="trait tinyvec::Array">Array</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.UpperExp.html" title="trait core::fmt::UpperExp">UpperExp</a> for <a class="enum" href="../tinyvec/enum.TinyVec.html" title="enum tinyvec::TinyVec">TinyVec</a>&lt;A&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A::<a class="type" href="../tinyvec/trait.Array.html#associatedtype.Item" title="type tinyvec::Array::Item">Item</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.UpperExp.html" title="trait core::fmt::UpperExp">UpperExp</a>,&nbsp;</span></code><a href="#impl-UpperExp" class="anchor"></a><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#1433-1448" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.fmt-3" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.UpperExp.html#tymethod.fmt" class="fnname">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#1438-1447" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Formats the value using the given formatter.</p>
</div></div><h3 id="impl-UpperHex" class="impl"><code class="in-band">impl&lt;A:&nbsp;<a class="trait" href="../tinyvec/trait.Array.html" title="trait tinyvec::Array">Array</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.UpperHex.html" title="trait core::fmt::UpperHex">UpperHex</a> for <a class="enum" href="../tinyvec/enum.TinyVec.html" title="enum tinyvec::TinyVec">TinyVec</a>&lt;A&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A::<a class="type" href="../tinyvec/trait.Array.html#associatedtype.Item" title="type tinyvec::Array::Item">Item</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.UpperHex.html" title="trait core::fmt::UpperHex">UpperHex</a>,&nbsp;</span></code><a href="#impl-UpperHex" class="anchor"></a><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#1450-1465" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.fmt-7" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.UpperHex.html#tymethod.fmt" class="fnname">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code><a class="srclink" href="../src/tinyvec/tinyvec.rs.html#1455-1464" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Formats the value using the given formatter.</p>
</div></div></div><h2 id="synthetic-implementations" class="small-section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor"></a></h2><div id="synthetic-implementations-list"><h3 id="impl-Send" class="impl"><code class="in-band">impl&lt;A&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="enum" href="../tinyvec/enum.TinyVec.html" title="enum tinyvec::TinyVec">TinyVec</a>&lt;A&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;&lt;A as <a class="trait" href="../tinyvec/trait.Array.html" title="trait tinyvec::Array">Array</a>&gt;::<a class="type" href="../tinyvec/trait.Array.html#associatedtype.Item" title="type tinyvec::Array::Item">Item</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,&nbsp;</span></code><a href="#impl-Send" class="anchor"></a><a class="srclink" href="../src/tinyvec/lib.rs.html#1" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-Sync" class="impl"><code class="in-band">impl&lt;A&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="enum" href="../tinyvec/enum.TinyVec.html" title="enum tinyvec::TinyVec">TinyVec</a>&lt;A&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;&lt;A as <a class="trait" href="../tinyvec/trait.Array.html" title="trait tinyvec::Array">Array</a>&gt;::<a class="type" href="../tinyvec/trait.Array.html#associatedtype.Item" title="type tinyvec::Array::Item">Item</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,&nbsp;</span></code><a href="#impl-Sync" class="anchor"></a><a class="srclink" href="../src/tinyvec/lib.rs.html#1" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-Unpin" class="impl"><code class="in-band">impl&lt;A&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="enum" href="../tinyvec/enum.TinyVec.html" title="enum tinyvec::TinyVec">TinyVec</a>&lt;A&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;&lt;A as <a class="trait" href="../tinyvec/trait.Array.html" title="trait tinyvec::Array">Array</a>&gt;::<a class="type" href="../tinyvec/trait.Array.html#associatedtype.Item" title="type tinyvec::Array::Item">Item</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,&nbsp;</span></code><a href="#impl-Unpin" class="anchor"></a><a class="srclink" href="../src/tinyvec/lib.rs.html#1" title="goto source code">[src]</a></h3><div class="impl-items"></div></div><h2 id="blanket-implementations" class="small-section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor"></a></h2><div id="blanket-implementations-list"><h3 id="impl-Any" class="impl"><code class="in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code><a href="#impl-Any" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#131-135" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.type_id" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&amp;self) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#132" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
</div></div><h3 id="impl-Borrow%3CT%3E" class="impl"><code class="in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;T&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code><a href="#impl-Borrow%3CT%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#207-211" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.borrow-1" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow" class="fnname">borrow</a>(&amp;self) -&gt; &amp;T</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#208" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
</div></div><h3 id="impl-BorrowMut%3CT%3E" class="impl"><code class="in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code><a href="#impl-BorrowMut%3CT%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#214-218" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.borrow_mut-1" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fnname">borrow_mut</a>(&amp;mut self) -&gt; &amp;mut T</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#215" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
</div></div><h3 id="impl-From%3C!%3E" class="impl"><code class="in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;!&gt; for T</code><a href="#impl-From%3C!%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#560-564" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.from-4" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(t: !) -&gt; T</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#561" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id="impl-From%3CT%3E" class="impl"><code class="in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt; for T</code><a href="#impl-From%3CT%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#545-549" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.from-5" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(t: T) -&gt; T</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#546" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id="impl-Into%3CU%3E" class="impl"><code class="in-band">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;U&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt;,&nbsp;</span></code><a href="#impl-Into%3CU%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#534-541" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.into" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into" class="fnname">into</a>(self) -&gt; U</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#538" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id="impl-ToOwned" class="impl"><code class="in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a> for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,&nbsp;</span></code><a href="#impl-ToOwned" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#80-92" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="associatedtype.Owned" class="type"><code>type <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#associatedtype.Owned" class="type">Owned</a> = T</code></h4><div class='docblock'><p>The resulting type after obtaining ownership.</p>
</div><h4 id="method.to_owned" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned" class="fnname">to_owned</a>(&amp;self) -&gt; T</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#85" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Creates owned data from borrowed data, usually by cloning. <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></p>
</div><h4 id="method.clone_into" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into" class="fnname">clone_into</a>(&amp;self, target: &amp;mut T)</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#89" title="goto source code">[src]</a></h4><div class="item-info hidden"><div class="stab unstable"><details><summary><span class="emoji">🔬</span> This is a nightly-only experimental API. (<code>toowned_clone_into</code>)</summary><p>recently added</p>
</details></div></div><div class='docblock hidden'><p>Uses borrowed data to replace owned data, usually by cloning. <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into">Read more</a></p>
</div></div><h3 id="impl-ToString" class="impl"><code class="in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/alloc/string/trait.ToString.html" title="trait alloc::string::ToString">ToString</a> for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code><a href="#impl-ToString" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/alloc/string.rs.html#2203-2216" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.to_string" class="method hidden"><code>pub default fn <a href="https://doc.rust-lang.org/nightly/alloc/string/trait.ToString.html#tymethod.to_string" class="fnname">to_string</a>(&amp;self) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/alloc/string.rs.html#2209" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Converts the given value to a <code>String</code>. <a href="https://doc.rust-lang.org/nightly/alloc/string/trait.ToString.html#tymethod.to_string">Read more</a></p>
</div></div><h3 id="impl-TryFrom%3CU%3E" class="impl"><code class="in-band">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;U&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;T&gt;,&nbsp;</span></code><a href="#impl-TryFrom%3CU%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#582-591" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="associatedtype.Error" class="type"><code>type <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" class="type">Error</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
</div><h4 id="method.try_from" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from" class="fnname">try_from</a>(value: U) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;T, &lt;T as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>&gt;</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#588" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id="impl-TryInto%3CU%3E" class="impl"><code class="in-band">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a>&lt;U&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;,&nbsp;</span></code><a href="#impl-TryInto%3CU%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#568-577" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="associatedtype.Error-1" class="type"><code>type <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error" class="type">Error</a> = &lt;U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
</div><h4 id="method.try_into" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into" class="fnname">try_into</a>(self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;U, &lt;U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>&gt;</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#574" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div></div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="tinyvec"></div>
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>