<!DOCTYPE html><htmllang="en"><head><metacharset="utf-8"><metaname="viewport"content="width=device-width, initial-scale=1.0"><metaname="generator"content="rustdoc"><metaname="description"content="API documentation for the Rust `ArrayVec` struct in crate `arrayvec`."><metaname="keywords"content="rust, rustlang, rust-lang, ArrayVec"><title>arrayvec::ArrayVec - Rust</title><linkrel="stylesheet"type="text/css"href="../normalize.css"><linkrel="stylesheet"type="text/css"href="../rustdoc.css"id="mainThemeStyle"><linkrel="stylesheet"type="text/css"href="../dark.css"><linkrel="stylesheet"type="text/css"href="../light.css"id="themeStyle"><scriptsrc="../storage.js"></script><noscript><linkrel="stylesheet"href="../noscript.css"></noscript><linkrel="shortcut icon"href="../favicon.ico"><styletype="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><bodyclass="rustdoc struct"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><navclass="sidebar"><divclass="sidebar-menu">☰</div><ahref='../arrayvec/index.html'><divclass='logo-container'><imgsrc='../rust-logo.png'alt='logo'></div></a><pclass='location'>Struct ArrayVec</p><divclass="sidebar-elems"><divclass="block items"><aclass="sidebar-title"href="#methods">Methods</a><divclass="sidebar-links"><ahref="#method.as_mut_slice">as_mut_slice</a><ahref="#method.as_slice">as_slice</a><ahref="#method.capacity">capacity</a><ahref="#method.clear">clear</a><ahref="#method.dispose">dispose</a><ahref="#method.drain">drain</a><ahref="#method.insert">insert</a><ahref="#method.into_inner">into_inner</a><ahref="#method.is_full">is_full</a><ahref="#method.len">len</a><ahref="#method.new">new</a><ahref="#method.pop">pop</a><ahref="#method.pop_at">pop_at</a><ahref="#method.push">push</a><ahref="#method.push_unchecked">push_unchecked</a><ahref="#method.remove">remove</a><ahref="#method.retain">retain</a><ahref="#method.set_len">set_len</a><ahref="#method.swap_pop">swap_pop</a><ahref="#method.swap_remove">swap_remove</a><ahref="#method.truncate">truncate</a><ahref="#method.try_insert">try_insert</a><ahref="#method.try_push">try_push</a></div><aclass="sidebar-title"href="#implementations">Trait Implementations</a><divclass="sidebar-links"><ahref="#impl-AsMut%3C%5B%3CA%20as%20Array%3E%3A%3AItem%5D%3E">AsMut<[<A as Array>::Item]></a><ahref="#impl-AsRef%3C%5B%3CA%20as%20Array%3E%3A%3AItem%5D%3E">AsRef<[<A as Array>::Item]></a><ahref="#impl-Borrow%3C%5B%3CA%20as%20Array%3E%3A%3AItem%5D%3E">Borrow<[<A as Array>::Item]></a><ahref="#impl-BorrowMut%3C%5B%3CA%20as%20Array%3E%3A%3AItem%5D%3E">BorrowMut<[<A as Array>::Item]></a><ahref="#impl-Clone">Clone</a><ahref="#impl-Debug">Debug</a><ahref="#impl-Default">Default</a><ahref="#impl-Deref">Deref</a><ahref="#impl-DerefMut">DerefMut</a><ahref="#impl-Drop">Drop</a><ahref="#impl-Eq">Eq</a><ahref="#impl-Extend%3C%3CA%20as%20Array%3E%3A%3AItem%3E">Extend<<A as Array>::Item></a><ahref="#impl-From%3CA%3E">From<A></a><ahref="#impl-FromIterator%3C%3CA%20as%20Array%3E%3A%3AItem%3E">FromIterator<<A as Array>::Item></a><ahref="#impl-Hash">Hash</a><ahref="#impl-IntoIterator">IntoIterator</a><ahref="#impl-Ord">Ord</a><ahref="#impl-PartialEq%3C%5B%3CA%20as%20Array%3E%3A%3AItem%5D%3E">PartialEq<[<A as Array>::Item]></a><ahref="#impl-PartialEq%3CArrayVec%3CA%3E%3E">PartialEq<ArrayVec<A>></a><ahref="#impl-PartialOrd%3CArrayVec%3CA%3E%3E">PartialOrd<ArrayVec<A>></a></div><aclass="sidebar-title"href="#synthetic-implementations">Auto Trait Implementations</a><divclass="sidebar-links"><ahref="#impl-Send">Send</a><ahref="#impl-Sync">Sync</a><ahref="#impl-Unpin">Unpin</a></div><aclass="sidebar-title"href="#blanket-implementations">Blanket Implementations</a><divclass="sidebar-links"><ahref="#impl-Any">Any</a><ahref="#impl-Borrow%3CT%3E">Borrow<T></a><ahref="#impl
<p>The <code>ArrayVec</code> is a vector backed by a fixed size array. It keeps track of
the number of initialized elements.</p>
<p>The vector is a contiguous value that you can store directly on the stack
if needed.</p>
<p>It offers a simple API but also dereferences to a slice, so
that the full slice API is available.</p>
<p>ArrayVec can be converted into a by value iterator.</p>
</div><h2id='methods'class='small-section-header'>Methods<ahref='#methods'class='anchor'></a></h2><h3id='impl'class='impl'><codeclass='in-band'>impl<A: <aclass="trait"href="../arrayvec/trait.Array.html"title="trait arrayvec::Array">Array</a>><aclass="struct"href="../arrayvec/struct.ArrayVec.html"title="struct arrayvec::ArrayVec">ArrayVec</a><A></code><ahref='#impl'class='anchor'></a><aclass='srclink'href='../src/arrayvec/lib.rs.html#114-595'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='method.new'class="method"><codeid='new.v'>pub fn <ahref='#method.new'class='fnname'>new</a>() -><aclass="struct"href="../arrayvec/struct.ArrayVec.html"title="struct arrayvec::ArrayVec">ArrayVec</a><A></code><aclass='srclink'href='../src/arrayvec/lib.rs.html#128-132'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Create a new empty <code>ArrayVec</code>.</p>
<p>Capacity is inferred from the type parameter.</p>
</div><h4id='method.len'class="method"><codeid='len.v'>pub fn <ahref='#method.len'class='fnname'>len</a>(&self) -> usize</code><aclass='srclink'href='../src/arrayvec/lib.rs.html#144'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Return the number of elements in the <code>ArrayVec</code>.</p>
</div><h4id='method.capacity'class="method"><codeid='capacity.v'>pub fn <ahref='#method.capacity'class='fnname'>capacity</a>(&self) -> usize</code><aclass='srclink'href='../src/arrayvec/lib.rs.html#155'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Return the capacity of the <code>ArrayVec</code>.</p>
</div><h4id='method.is_full'class="method"><codeid='is_full.v'>pub fn <ahref='#method.is_full'class='fnname'>is_full</a>(&self) -> bool</code><aclass='srclink'href='../src/arrayvec/lib.rs.html#167'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Return if the <code>ArrayVec</code> is completely filled.</p>
</div><h4id='method.push'class="method"><codeid='push.v'>pub fn <ahref='#method.push'class='fnname'>push</a>(&mut self, element: A::<aclass="type"href="../arrayvec/trait.Array.html#associatedtype.Item"title="type arrayvec::Array::Item">Item</a>)</code><aclass='srclink'href='../src/arrayvec/lib.rs.html#183-185'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Push <code>element</code> to the end of the vector.</p>
<p><em><strong>Panics</strong></em> if the vector is already full.</p>
</div><h4id='method.try_push'class="method"><codeid='try_push.v'>pub fn <ahref='#method.try_push'class='fnname'>try_push</a>(<br> &mut self, <br> element: A::<aclass="type"href="../arrayvec/trait.Array.html#associatedtype.Item"title="type arrayvec::Array::Item">Item</a><br>) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><(), <aclass="struct"href="../arrayvec/struct.CapacityError.html"title="struct arrayvec::CapacityError">CapacityError</a><A::<aclass="type"href="../arrayvec/trait.Array.html#associatedtype.Item"title="type arrayvec::Array::Item">Item</a>>></code><aclass='srclink'href='../src/arrayvec/lib.rs.html#209-218'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Push <code>element</code> to the end of the vector.</p>
<p>Return <code>Ok</code> if the push succeeds, or return an error if the vector
</div><h4id='method.push_unchecked'class="method"><codeid='push_unchecked.v'>pub unsafe fn <ahref='#method.push_unchecked'class='fnname'>push_unchecked</a>(&mut self, element: A::<aclass="type"href="../arrayvec/trait.Array.html#associatedtype.Item"title="type arrayvec::Array::Item">Item</a>)</code><aclass='srclink'href='../src/arrayvec/lib.rs.html#243-248'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Push <code>element</code> to the end of the vector without checking the capacity.</p>
<p>It is up to the caller to ensure the capacity of the vector is
sufficiently large.</p>
<p>This method uses <em>debug assertions</em> to check that the arrayvec is not full.</p>
</div><h4id='method.pop'class="method"><codeid='pop.v'>pub fn <ahref='#method.pop'class='fnname'>pop</a>(&mut self) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html"title="enum core::option::Option">Option</a><A::<aclass="type"href="../arrayvec/trait.Array.html#associatedtype.Item"title="type arrayvec::Array::Item">Item</a>></code><aclass='srclink'href='../src/arrayvec/lib.rs.html#334-343'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Remove the last element in the vector and return it.</p>
<p>Return <code>Some(</code><em>element</em><code>)</code> if the vector is non-empty, else <code>None</code>.</p>
</div><h4id='method.swap_remove'class="method"><codeid='swap_remove.v'>pub fn <ahref='#method.swap_remove'class='fnname'>swap_remove</a>(&mut self, index: usize) -> A::<aclass="type"href="../arrayvec/trait.Array.html#associatedtype.Item"title="type arrayvec::Array::Item">Item</a></code><aclass='srclink'href='../src/arrayvec/lib.rs.html#364-369'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Remove the element at <code>index</code> and swap the last element into its place.</p>
<p>This operation is O(1).</p>
<p>Return the <em>element</em> if the index is in bounds, else panic.</p>
<p><em><strong>Panics</strong></em> if the <code>index</code> is out of bounds.</p>
</div><h4id='method.swap_pop'class="method"><codeid='swap_pop.v'>pub fn <ahref='#method.swap_pop'class='fnname'>swap_pop</a>(&mut self, index: usize) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html"title="enum core::option::Option">Option</a><A::<aclass="type"href="../arrayvec/trait.Array.html#associatedtype.Item"title="type arrayvec::Array::Item">Item</a>></code><aclass='srclink'href='../src/arrayvec/lib.rs.html#388-395'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Remove the element at <code>index</code> and swap the last element into its place.</p>
<p>This is a checked version of <code>.swap_remove</code>.<br/>
This operation is O(1).</p>
<p>Return <code>Some(</code><em>element</em><code>)</code> if the index is in bounds, else <code>None</code>.</p>
</div><h4id='method.remove'class="method"><codeid='remove.v'>pub fn <ahref='#method.remove'class='fnname'>remove</a>(&mut self, index: usize) -> A::<aclass="type"href="../arrayvec/trait.Array.html#associatedtype.Item"title="type arrayvec::Array::Item">Item</a></code><aclass='srclink'href='../src/arrayvec/lib.rs.html#412-417'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Remove the element at <code>index</code> and shift down the following elements.</p>
<p>The <code>index</code> must be strictly less than the length of the vector.</p>
<p><em><strong>Panics</strong></em> if the <code>index</code> is out of bounds.</p>
</div><h4id='method.pop_at'class="method"><codeid='pop_at.v'>pub fn <ahref='#method.pop_at'class='fnname'>pop_at</a>(&mut self, index: usize) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html"title="enum core::option::Option">Option</a><A::<aclass="type"href="../arrayvec/trait.Array.html#associatedtype.Item"title="type arrayvec::Array::Item">Item</a>></code><aclass='srclink'href='../src/arrayvec/lib.rs.html#435-441'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Remove the element at <code>index</code> and shift down the following elements.</p>
<p>This is a checked version of <code>.remove(index)</code>. Returns <code>None</code> if there
is no element at <code>index</code>. Otherwise, return the element inside <code>Some</code>.</p>
</div><h4id='method.truncate'class="method"><codeid='truncate.v'>pub fn <ahref='#method.truncate'class='fnname'>truncate</a>(&mut self, len: usize)</code><aclass='srclink'href='../src/arrayvec/lib.rs.html#458-460'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Shortens the vector, keeping the first <code>len</code> elements and dropping
the rest.</p>
<p>If <code>len</code> is greater than the vector’s current length this has no
</div><h4id='method.clear'class="method"><codeid='clear.v'>pub fn <ahref='#method.clear'class='fnname'>clear</a>(&mut self)</code><aclass='srclink'href='../src/arrayvec/lib.rs.html#463-465'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Remove all elements in the vector.</p>
</div><h4id='method.retain'class="method"><codeid='retain.v'>pub fn <ahref='#method.retain'class='fnname'>retain</a><F>(&mut self, f: F) <spanclass="where fmt-newline">where<br> F: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html"title="trait core::ops::function::FnMut">FnMut</a>(&mut A::<aclass="type"href="../arrayvec/trait.Array.html#associatedtype.Item"title="type arrayvec::Array::Item">Item</a>) -> bool, </span></code><aclass='srclink'href='../src/arrayvec/lib.rs.html#480-499'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Retains only the elements specified by the predicate.</p>
<p>In other words, remove all elements <code>e</code> such that <code>f(&mut e)</code> returns false.
This method operates in place and preserves the order of the retained
</div><h4id='method.set_len'class="method"><codeid='set_len.v'>pub unsafe fn <ahref='#method.set_len'class='fnname'>set_len</a>(&mut self, length: usize)</code><aclass='srclink'href='../src/arrayvec/lib.rs.html#509-512'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Set the vector’s length without dropping or moving out elements</p>
<p>This method is <code>unsafe</code> because it changes the notion of the
number of “valid” elements in the vector. Use with care.</p>
<p>This method uses <em>debug assertions</em> to check that check that <code>length</code> is
not greater than the capacity.</p>
</div><h4id='method.drain'class="method"><divclass="important-traits"><divclass='tooltip'>ⓘ<spanclass='tooltiptext'>Important traits for <aclass="struct"href="../arrayvec/struct.Drain.html"title="struct arrayvec::Drain">Drain</a><'a, A></span></div><divclass="content hidden"><h3class="important">Important traits for <aclass="struct"href="../arrayvec/struct.Drain.html"title="struct arrayvec::Drain">Drain</a><'a, A></h3><codeclass="content"><spanclass="where fmt-newline">impl<'a, A: <aclass="trait"href="../arrayvec/trait.Array.html"title="trait arrayvec::Array">Array</a>><aclass="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 <aclass="struct"href="../arrayvec/struct.Drain.html"title="struct arrayvec::Drain">Drain</a><'a, A><spanclass="where fmt-newline">where<br> A::<aclass="type"href="../arrayvec/trait.Array.html#associatedtype.Item"title="type arrayvec::Array::Item">Item</a>: 'a, </span></span><spanclass="where fmt-newline"> type <ahref='https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item'class="type">Item</a> = A::<aclass="type"href="../arrayvec/trait.Array.html#associatedtype.Item"title="type arrayvec::Array::Item">Item</a>;</span></code></div></div><codeid='drain.v'>pub fn <ahref='#method.drain'class='fnname'>drain</a><R: <aclass="trait"href="../arrayvec/trait.RangeArgument.html"title="trait arrayvec::RangeArgument">RangeArgument</a>>(&mut self, range: R) -><aclass="struct"href="../arrayvec/struct.Drain.html"title="struct arrayvec::Drain">Drain</a><A></code><aclass='srclink'href='../src/arrayvec/lib.rs.html#532-559'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Create a draining iterator that removes the specified range in the vector
and yields the removed items from start to end. The element range is
removed even if the iterator is not consumed until the end.</p>
<p>Note: It is unspecified how many elements are removed from the vector,
if the <code>Drain</code> value is leaked.</p>
<p><strong>Panics</strong> if the starting point is greater than the end point or if
the end point is greater than the length of the vector.</p>
</div><h4id='method.into_inner'class="method"><codeid='into_inner.v'>pub fn <ahref='#method.into_inner'class='fnname'>into_inner</a>(self) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><A, Self></code><aclass='srclink'href='../src/arrayvec/lib.rs.html#568-578'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Return the inner fixed size array, if it is full to its capacity.</p>
<p>Return an <code>Ok</code> value with the array if length equals capacity,
return an <code>Err</code> with self otherwise.</p>
<p><code>Note:</code> This function may incur unproportionally large overhead
to move the array out, its performance is not optimal.</p>
</div><h4id='method.dispose'class="method"><codeid='dispose.v'>pub fn <ahref='#method.dispose'class='fnname'>dispose</a>(self)</code><aclass='srclink'href='../src/arrayvec/lib.rs.html#581-584'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Dispose of <code>self</code> without the overwriting that is needed in Drop.</p>
</div><h4id='method.as_slice'class="method"><codeid='as_slice.v'>pub fn <ahref='#method.as_slice'class='fnname'>as_slice</a>(&self) ->&[A::<aclass="type"href="../arrayvec/trait.Array.html#associatedtype.Item"title="type arrayvec::Array::Item">Item</a>]</code><aclass='srclink'href='../src/arrayvec/lib.rs.html#587-589'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Return a slice containing all elements of the vector.</p>
</div><h4id='method.as_mut_slice'class="method"><codeid='as_mut_slice.v'>pub fn <ahref='#method.as_mut_slice'class='fnname'>as_mut_slice</a>(&mut self) ->&mut [A::<aclass="type"href="../arrayvec/trait.Array.html#associatedtype.Item"title="type arrayvec::Array::Item">Item</a>]</code><aclass='srclink'href='../src/arrayvec/lib.rs.html#592-594'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Return a mutable slice containing all elements of the vector.</p>
</div></div><h3id='impl-From%3CA%3E'class='impl'><codeclass='in-band'>impl<A: <aclass="trait"href="../arrayvec/trait.Array.html"title="trait arrayvec::Array">Array</a>><aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html"title="trait core::convert::From">From</a><A> for <aclass="struct"href="../arrayvec/struct.ArrayVec.html"title="struct arrayvec::ArrayVec">ArrayVec</a><A></code><ahref='#impl-From%3CA%3E'class='anchor'></a><aclass='srclink'href='../src/arrayvec/lib.rs.html#626-630'title='goto source code'>[src]</a></h3><divclass='docblock'><p>Create an <code>ArrayVec</code> from an array.</p>
</div><divclass='impl-items'><h4id='method.from'class="method hidden"><codeid='from.v'>fn <ahref='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from'class='fnname'>from</a>(array: A) -> Self</code><aclass='srclink'href='../src/arrayvec/lib.rs.html#627-629'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3id='impl-PartialEq%3CArrayVec%3CA%3E%3E'class='impl'><codeclass='in-band'>impl<A: <aclass="trait"href="../arrayvec/trait.Array.html"title="trait arrayvec::Array">Array</a>><aclass="trait"href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html"title="trait core::cmp::PartialEq">PartialEq</a><<aclass="struct"href="../arrayvec/struct.ArrayVec.html"title="struct arrayvec::ArrayVec">ArrayVec</a><A>> for <aclass="struct"href="../arrayvec/struct.ArrayVec.html"title="struct arrayvec::ArrayVec">ArrayVec</a><A><spanclass="where fmt-newline">where<br> A::<aclass="type"href="../arrayvec/trait.Array.html#associatedtype.Item"title="type arrayvec::Array::Item">Item</a>: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html"title="trait core::cmp::PartialEq">PartialEq</a>, </span></code><ahref='#impl-PartialEq%3CArrayVec%3CA%3E%3E'class='anchor'></a><aclass='srclink'href='../src/arrayvec/lib.rs.html#939-945'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='method.eq'class="method hidden"><codeid='eq.v'>fn <ahref='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq'class='fnname'>eq</a>(&self, other: &Self) -> bool</code><aclass='srclink'href='../src/arrayvec/lib.rs.html#942-944'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>. <ahref="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
</span>fn <ahref='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#method.ne'class='fnname'>ne</a>(&self, other: &Rhs) -> bool</code><spanclass='since'title='Stable since Rust version 1.0.0'>1.0.0</span><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#200'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>This method tests for <code>!=</code>.</p>
</div></div><h3id='impl-PartialEq%3C%5B%3CA%20as%20Array%3E%3A%3AItem%5D%3E'class='impl'><codeclass='in-band'>impl<A: <aclass="trait"href="../arrayvec/trait.Array.html"title="trait arrayvec::Array">Array</a>><aclass="trait"href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html"title="trait core::cmp::PartialEq">PartialEq</a><[<A as <aclass="trait"href="../arrayvec/trait.Array.html"title="trait arrayvec::Array">Array</a>>::<aclass="type"href="../arrayvec/trait.Array.html#associatedtype.Item"title="type arrayvec::Array::Item">Item</a>]> for <aclass="struct"href="../arrayvec/struct.ArrayVec.html"title="struct arrayvec::ArrayVec">ArrayVec</a><A><spanclass="where fmt-newline">where<br> A::<aclass="type"href="../arrayvec/trait.Array.html#associatedtype.Item"title="type arrayvec::Array::Item">Item</a>: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html"title="trait core::cmp::PartialEq">PartialEq</a>, </span></code><ahref='#impl-PartialEq%3C%5B%3CA%20as%20Array%3E%3A%3AItem%5D%3E'class='anchor'></a><aclass='srclink'href='../src/arrayvec/lib.rs.html#947-953'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='method.eq-1'class="method hidden"><codeid='eq.v-1'>fn <ahref='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq'class='fnname'>eq</a>(&self, other: &[A::<aclass="type"href="../arrayvec/trait.Array.html#associatedtype.Item"title="type arrayvec::Array::Item">Item</a>]) -> bool</code><aclass='srclink'href='../src/arrayvec/lib.rs.html#950-952'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>. <ahref="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
</span>fn <ahref='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#method.ne'class='fnname'>ne</a>(&self, other: &Rhs) -> bool</code><spanclass='since'title='Stable since Rust version 1.0.0'>1.0.0</span><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#200'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>This method tests for <code>!=</code>.</p>
</div></div><h3id='impl-Eq'class='impl'><codeclass='in-band'>impl<A: <aclass="trait"href="../arrayvec/trait.Array.html"title="trait arrayvec::Array">Array</a>><aclass="trait"href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html"title="trait core::cmp::Eq">Eq</a> for <aclass="struct"href="../arrayvec/struct.ArrayVec.html"title="struct arrayvec::ArrayVec">ArrayVec</a><A><spanclass="where fmt-newline">where<br> A::<aclass="type"href="../arrayvec/trait.Array.html#associatedtype.Item"title="type arrayvec::Array::Item">Item</a>: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html"title="trait core::cmp::Eq">Eq</a>, </span></code><ahref='#impl-Eq'class='anchor'></a><aclass='srclink'href='../src/arrayvec/lib.rs.html#955'title='goto source code'>[src]</a></h3><divclass='impl-items'></div><h3id='impl-Ord'class='impl'><codeclass='in-band'>impl<A: <aclass="trait"href="../arrayvec/trait.Array.html"title="trait arrayvec::Array">Array</a>><aclass="trait"href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html"title="trait core::cmp::Ord">Ord</a> for <aclass="struct"href="../arrayvec/struct.ArrayVec.html"title="struct arrayvec::ArrayVec">ArrayVec</a><A><spanclass="where fmt-newline">where<br> A::<aclass="type"href="../arrayvec/trait.Array.html#associatedtype.Item"title="type arrayvec::Array::Item">Item</a>: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html"title="trait core::cmp::Ord">Ord</a>, </span></code><ahref='#impl-Ord'class='anchor'></a><aclass='srclink'href='../src/arrayvec/lib.rs.html#1011-1015'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='method.cmp'class="method hidden"><codeid='cmp.v'>fn <ahref='https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#tymethod.cmp'class='fnname'>cmp</a>(&self, other: &<aclass="struct"href="../arrayvec/struct.ArrayVec.html"title="struct arrayvec::ArrayVec">ArrayVec</a><A>) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/cmp/enum.Ordering.html"title="enum core::cmp::Ordering">Ordering</a></code><aclass='srclink'href='../src/arrayvec/lib.rs.html#1012-1014'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>This method returns an <code>Ordering</code> between <code>self</code> and <code>other</code>. <ahref="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#tymethod.cmp">Read more</a></p>
</div><h4id='method.max'class="method hidden"><codeid='max.v'>fn <ahref='https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.max'class='fnname'>max</a>(self, other: Self) -> Self</code><spanclass='since'title='Stable since Rust version 1.21.0'>1.21.0</span><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#563-566'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Compares and returns the maximum of two values. <ahref="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.max">Read more</a></p>
</div><h4id='method.min'class="method hidden"><codeid='min.v'>fn <ahref='https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.min'class='fnname'>min</a>(self, other: Self) -> Self</code><spanclass='since'title='Stable since Rust version 1.21.0'>1.21.0</span><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#580-583'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Compares and returns the minimum of two values. <ahref="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.min">Read more</a></p>
</div><h4id='method.clamp'class="method hidden"><codeid='clamp.v'>fn <ahref='https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.clamp'class='fnname'>clamp</a>(self, min: Self, max: Self) -> Self</code><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#604-614'title='goto source code'>[src]</a></h4><divclass='stability hidden'><divclass='stab unstable'><spanclass='emoji'>🔬</span> This is a nightly-only experimental API. (<code>clamp</code>)</div></div><divclass='docblock hidden'><p>Restrict a value to a certain interval. <ahref="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.clamp">Read more</a></p>
</div></div><h3id='impl-PartialOrd%3CArrayVec%3CA%3E%3E'class='impl'><codeclass='in-band'>impl<A: <aclass="trait"href="../arrayvec/trait.Array.html"title="trait arrayvec::Array">Array</a>><aclass="trait"href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html"title="trait core::cmp::PartialOrd">PartialOrd</a><<aclass="struct"href="../arrayvec/struct.ArrayVec.html"title="struct arrayvec::ArrayVec">ArrayVec</a><A>> for <aclass="struct"href="../arrayvec/struct.ArrayVec.html"title="struct arrayvec::ArrayVec">ArrayVec</a><A><spanclass="where fmt-newline">where<br> A::<aclass="type"href="../arrayvec/trait.Array.html#associatedtype.Item"title="type arrayvec::Array::Item">Item</a>: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html"title="trait core::cmp::PartialOrd">PartialOrd</a>, </span></code><ahref='#impl-PartialOrd%3CArrayVec%3CA%3E%3E'class='anchor'></a><aclass='srclink'href='../src/arrayvec/lib.rs.html#984-1009'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='method.partial_cmp'class="method hidden"><codeid='partial_cmp.v'>fn <ahref='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#tymethod.partial_cmp'class='fnname'>partial_cmp</a>(&self, other: &<aclass="struct"href="../arrayvec/struct.ArrayVec.html"title="struct arrayvec::ArrayVec">ArrayVec</a><A>) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html"title="enum core::option::Option">Option</a><<aclass="enum"href="https://doc.rust-lang.org/nightly/core/cmp/enum.Ordering.html"title="enum core::cmp::Ordering">Ordering</a>></code><aclass='srclink'href='../src/arrayvec/lib.rs.html#986-988'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>This method returns an ordering between <code>self</code> and <code>other</code> values if one exists. <ahref="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#tymethod.partial_cmp">Read more</a></p>
</div><h4id='method.lt'class="method hidden"><codeid='lt.v'>fn <ahref='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.lt'class='fnname'>lt</a>(&self, other: &Self) -> bool</code><aclass='srclink'href='../src/arrayvec/lib.rs.html#991-993'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>This method tests less than (for <code>self</code> and <code>other</code>) and is used by the <code><</code> operator. <ahref="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.lt">Read more</a></p>
</div><h4id='method.le'class="method hidden"><codeid='le.v'>fn <ahref='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.le'class='fnname'>le</a>(&self, other: &Self) -> bool</code><aclass='srclink'href='../src/arrayvec/lib.rs.html#996-998'title='goto source code'>[src]</a></h4><divclass='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><=</code> operator. <ahref="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.le">Read more</a></p>
</div><h4id='method.ge'class="method hidden"><codeid='ge.v'>fn <ahref='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.ge'class='fnname'>ge</a>(&self, other: &Self) -> bool</code><aclass='srclink'href='../src/arrayvec/lib.rs.html#1001-1003'title='goto source code'>[src]</a></h4><divclass='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>>=</code> operator. <ahref="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.ge">Read more</a></p>
</div><h4id='method.gt'class="method hidden"><codeid='gt.v'>fn <ahref='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.gt'class='fnname'>gt</a>(&self, other: &Self) -> bool</code><aclass='srclink'href='../src/arrayvec/lib.rs.html#1006-1008'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>This method tests greater than (for <code>self</code> and <code>other</code>) and is used by the <code>></code> operator. <ahref="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.gt">Read more</a></p>
</div></div><h3id='impl-Hash'class='impl'><codeclass='in-band'>impl<A: <aclass="trait"href="../arrayvec/trait.Array.html"title="trait arrayvec::Array">Array</a>><aclass="trait"href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html"title="trait core::hash::Hash">Hash</a> for <aclass="struct"href="../arrayvec/struct.ArrayVec.html"title="struct arrayvec::ArrayVec">ArrayVec</a><A><spanclass="where fmt-newline">where<br> A::<aclass="type"href="../arrayvec/trait.Array.html#associatedtype.Item"title="type arrayvec::Array::Item">Item</a>: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html"title="trait core::hash::Hash">Hash</a>, </span></code><ahref='#impl-Hash'class='anchor'></a><aclass='srclink'href='../src/arrayvec/lib.rs.html#931-937'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='method.hash'class="method hidden"><codeid='hash.v'>fn <ahref='https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#tymethod.hash'class='fnname'>hash</a><H: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html"title="trait core::hash::Hasher">Hasher</a>>(&self, state: &mut H)</code><aclass='srclink'href='../src/arrayvec/lib.rs.html#934-936'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Feeds this value into the given [<code>Hasher</code>]. <ahref="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#tymethod.hash">Read more</a></p>
</div><h4id='method.hash_slice'class="method hidden"><codeid='hash_slice.v'>fn <ahref='https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#method.hash_slice'class='fnname'>hash_slice</a><H>(data: &[Self], state: &mut H) <spanclass="where fmt-newline">where<br> H: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html"title="trait core::hash::Hasher">Hasher</a>, </span></code><spanclass='since'title='Stable since Rust version 1.3.0'>1.3.0</span><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/hash/mod.rs.html#192-198'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Feeds a slice of this type into the given [<code>Hasher</code>]. <ahref="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#method.hash_slice">Read more</a></p>
</div></div><h3id='impl-Debug'class='impl'><codeclass='in-band'>impl<A: <aclass="trait"href="../arrayvec/trait.Array.html"title="trait arrayvec::Array">Array</a>><aclass="trait"href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html"title="trait core::fmt::Debug">Debug</a> for <aclass="struct"href="../arrayvec/struct.ArrayVec.html"title="struct arrayvec::ArrayVec">ArrayVec</a><A><spanclass="where fmt-newline">where<br> A::<aclass="type"href="../arrayvec/trait.Array.html#associatedtype.Item"title="type arrayvec::Array::Item">Item</a>: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html"title="trait core::fmt::Debug">Debug</a>, </span></code><ahref='#impl-Debug'class='anchor'></a><aclass='srclink'href='../src/arrayvec/lib.rs.html#973-975'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='method.fmt'class="method hidden"><codeid='fmt.v'>fn <ahref='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt'class='fnname'>fmt</a>(&self, f: &mut <aclass="struct"href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html"title="struct core::fmt::Formatter">Formatter</a>) -><aclass="type"href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html"title="type core::fmt::Result">Result</a></code><aclass='srclink'href='../src/arrayvec/lib.rs.html#974'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Formats the value using the given formatter. <ahref="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
</div></div><h3id='impl-Drop'class='impl'><codeclass='in-band'>impl<A: <aclass="trait"href="../arrayvec/trait.Array.html"title="trait arrayvec::Array">Array</a>><aclass="trait"href="https://doc.rust-lang.org/nightly/core/ops/drop/trait.Drop.html"title="trait core::ops::drop::Drop">Drop</a> for <aclass="struct"href="../arrayvec/struct.ArrayVec.html"title="struct arrayvec::ArrayVec">ArrayVec</a><A></code><ahref='#impl-Drop'class='anchor'></a><aclass='srclink'href='../src/arrayvec/lib.rs.html#97-105'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='method.drop'class="method hidden"><codeid='drop.v'>fn <ahref='https://doc.rust-lang.org/nightly/core/ops/drop/trait.Drop.html#tymethod.drop'class='fnname'>drop</a>(&mut self)</code><aclass='srclink'href='../src/arrayvec/lib.rs.html#98-104'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Executes the destructor for this type. <ahref="https://doc.rust-lang.org/nightly/core/ops/drop/trait.Drop.html#tymethod.drop">Read more</a></p>
</div></div><h3id='impl-Extend%3C%3CA%20as%20Array%3E%3A%3AItem%3E'class='impl'><codeclass='in-band'>impl<A: <aclass="trait"href="../arrayvec/trait.Array.html"title="trait arrayvec::Array">Array</a>><aclass="trait"href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.Extend.html"title="trait core::iter::traits::collect::Extend">Extend</a><<A as <aclass="trait"href="../arrayvec/trait.Array.html"title="trait arrayvec::Array">Array</a>>::<aclass="type"href="../arrayvec/trait.Array.html#associatedtype.Item"title="type arrayvec::Array::Item">Item</a>> for <aclass="struct"href="../arrayvec/struct.ArrayVec.html"title="struct arrayvec::ArrayVec">ArrayVec</a><A></code><ahref='#impl-Extend%3C%3CA%20as%20Array%3E%3A%3AItem%3E'class='anchor'></a><aclass='srclink'href='../src/arrayvec/lib.rs.html#869-893'title='goto source code'>[src]</a></h3><divclass='docblock'><p>Extend the <code>ArrayVec</code> with an iterator.</p>
<p>Does not extract more items than there is space for. No error
occurs if there are more iterator elements.</p>
</div><divclass='impl-items'><h4id='method.extend'class="method hidden"><codeid='extend.v'>fn <ahref='https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.Extend.html#tymethod.extend'class='fnname'>extend</a><T: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html"title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a><Item = A::<aclass="type"href="../arrayvec/trait.Array.html#associatedtype.Item"title="type arrayvec::Array::Item">Item</a>>>(&mut self, iter: T)</code><aclass='srclink'href='../src/arrayvec/lib.rs.html#870-892'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Extends a collection with the contents of an iterator. <ahref="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.Extend.html#tymethod.extend">Read more</a></p>
</div></div><h3id='impl-FromIterator%3C%3CA%20as%20Array%3E%3A%3AItem%3E'class='impl'><codeclass='in-band'>impl<A: <aclass="trait"href="../arrayvec/trait.Array.html"title="trait arrayvec::Array">Array</a>><aclass="trait"href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.FromIterator.html"title="trait core::iter::traits::collect::FromIterator">FromIterator</a><<A as <aclass="trait"href="../arrayvec/trait.Array.html"title="trait arrayvec::Array">Array</a>>::<aclass="type"href="../arrayvec/trait.Array.html#associatedtype.Item"title="type arrayvec::Array::Item">Item</a>> for <aclass="struct"href="../arrayvec/struct.ArrayVec.html"title="struct arrayvec::ArrayVec">ArrayVec</a><A></code><ahref='#impl-FromIterator%3C%3CA%20as%20Array%3E%3A%3AItem%3E'class='anchor'></a><aclass='srclink'href='../src/arrayvec/lib.rs.html#899-905'title='goto source code'>[src]</a></h3><divclass='docblock'><p>Create an <code>ArrayVec</code> from an iterator.</p>
<p>Does not extract more items than there is space for. No error
occurs if there are more iterator elements.</p>
</div><divclass='impl-items'><h4id='method.from_iter'class="method hidden"><codeid='from_iter.v'>fn <ahref='https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.FromIterator.html#tymethod.from_iter'class='fnname'>from_iter</a><T: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html"title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a><Item = A::<aclass="type"href="../arrayvec/trait.Array.html#associatedtype.Item"title="type arrayvec::Array::Item">Item</a>>>(iter: T) -> Self</code><aclass='srclink'href='../src/arrayvec/lib.rs.html#900-904'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Creates a value from an iterator. <ahref="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.FromIterator.html#tymethod.from_iter">Read more</a></p>
</div></div><h3id='impl-IntoIterator'class='impl'><codeclass='in-band'>impl<'a, A: <aclass="trait"href="../arrayvec/trait.Array.html"title="trait arrayvec::Array">Array</a>><aclass="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 <aclass="struct"href="../arrayvec/struct.ArrayVec.html"title="struct arrayvec::ArrayVec">ArrayVec</a><A></code><ahref='#impl-IntoIterator'class='anchor'></a><aclass='srclink'href='../src/arrayvec/lib.rs.html#644-648'title='goto source code'>[src]</a></h3><divclass='docblock'><p>Iterate the <code>ArrayVec</code> with references to each element.</p>
</div><divclass='impl-items'><h4id='associatedtype.Item'class="type"><codeid='Item.t'>type <ahref='https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item'class="type">Item</a> = &'a A::<aclass="type"href="../arrayvec/trait.Array.html#associatedtype.Item"title="type arrayvec::Array::Item">Item</a></code></h4><divclass='docblock'><p>The type of the elements being iterated over.</p>
</div><h4id='associatedtype.IntoIter'class="type"><codeid='IntoIter.t'>type <ahref='https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter'class="type">IntoIter</a> = <aclass="struct"href="https://doc.rust-lang.org/nightly/core/slice/struct.Iter.html"title="struct core::slice::Iter">Iter</a><'a, A::<aclass="type"href="../arrayvec/trait.Array.html#associatedtype.Item"title="type arrayvec::Array::Item">Item</a>></code></h4><divclass='docblock'><p>Which kind of iterator are we turning this into?</p>
</div><h4id='method.into_iter'class="method hidden"><codeid='into_iter.v'>fn <ahref='https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter'class='fnname'>into_iter</a>(self) -> Self::<aclass="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><aclass='srclink'href='../src/arrayvec/lib.rs.html#647'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Creates an iterator from a value. <ahref="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter">Read more</a></p>
</div></div><h3id='impl-IntoIterator-1'class='impl'><codeclass='in-band'>impl<'a, A: <aclass="trait"href="../arrayvec/trait.Array.html"title="trait arrayvec::Array">Array</a>><aclass="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 mut <aclass="struct"href="../arrayvec/struct.ArrayVec.html"title="struct arrayvec::ArrayVec">ArrayVec</a><A></code><ahref='#impl-IntoIterator-1'class='anchor'></a><aclass='srclink'href='../src/arrayvec/lib.rs.html#661-665'title='goto source code'>[src]</a></h3><divclass='docblock'><p>Iterate the <code>ArrayVec</code> with mutable references to each element.</p>
</div><divclass='impl-items'><h4id='associatedtype.Item-1'class="type"><codeid='Item.t-1'>type <ahref='https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item'class="type">Item</a> = &'a mut A::<aclass="type"href="../arrayvec/trait.Array.html#associatedtype.Item"title="type arrayvec::Array::Item">Item</a></code></h4><divclass='docblock'><p>The type of the elements being iterated over.</p>
</div><h4id='associatedtype.IntoIter-1'class="type"><codeid='IntoIter.t-1'>type <ahref='https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter'class="type">IntoIter</a> = <aclass="struct"href="https://doc.rust-lang.org/nightly/core/slice/struct.IterMut.html"title="struct core::slice::IterMut">IterMut</a><'a, A::<aclass="type"href="../arrayvec/trait.Array.html#associatedtype.Item"title="type arrayvec::Array::Item">Item</a>></code></h4><divclass='docblock'><p>Which kind of iterator are we turning this into?</p>
</div><h4id='method.into_iter-1'class="method hidden"><codeid='into_iter.v-1'>fn <ahref='https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter'class='fnname'>into_iter</a>(self) -> Self::<aclass="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><aclass='srclink'href='../src/arrayvec/lib.rs.html#664'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Creates an iterator from a value. <ahref="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter">Read more</a></p>
</div></div><h3id='impl-IntoIterator-2'class='impl'><codeclass='in-band'>impl<A: <aclass="trait"href="../arrayvec/trait.Array.html"title="trait arrayvec::Array">Array</a>><aclass="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 <aclass="struct"href="../arrayvec/struct.ArrayVec.html"title="struct arrayvec::ArrayVec">ArrayVec</a><A></code><ahref='#impl-IntoIterator-2'class='anchor'></a><aclass='srclink'href='../src/arrayvec/lib.rs.html#678-684'title='goto source code'>[src]</a></h3><divclass='docblock'><p>Iterate the <code>ArrayVec</code> with each element by value.</p>
</div><divclass='impl-items'><h4id='associatedtype.Item-2'class="type"><codeid='Item.t-2'>type <ahref='https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item'class="type">Item</a> = A::<aclass="type"href="../arrayvec/trait.Array.html#associatedtype.Item"title="type arrayvec::Array::Item">Item</a></code></h4><divclass='docblock'><p>The type of the elements being iterated over.</p>
</div><h4id='associatedtype.IntoIter-2'class="type"><codeid='IntoIter.t-2'>type <ahref='https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter'class="type">IntoIter</a> = <aclass="struct"href="../arrayvec/struct.IntoIter.html"title="struct arrayvec::IntoIter">IntoIter</a><A></code></h4><divclass='docblock'><p>Which kind of iterator are we turning this into?</p>
</div><h4id='method.into_iter-2'class="method hidden"><divclass="important-traits"><divclass='tooltip'>ⓘ<spanclass='tooltiptext'>Important traits for <aclass="struct"href="../arrayvec/struct.IntoIter.html"title="struct arrayvec::IntoIter">IntoIter</a><A></span></div><divclass="content hidden"><h3class="important">Important traits for <aclass="struct"href="../arrayvec/struct.IntoIter.html"title="struct arrayvec::IntoIter">IntoIter</a><A></h3><codeclass="content"><spanclass="where fmt-newline">impl<A: <aclass="trait"href="../arrayvec/trait.Array.html"title="trait arrayvec::Array">Array</a>><aclass="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 <aclass="struct"href="../arrayvec/struct.IntoIter.html"title="struct arrayvec::IntoIter">IntoIter</a><A></span><spanclass="where fmt-newline"> type <ahref='https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item'class="type">Item</a> = A::<aclass="type"href="../arrayvec/trait.Array.html#associatedtype.Item"title="type arrayvec::Array::Item">Item</a>;</span></code></div></div><codeid='into_iter.v-2'>fn <ahref='https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter'class='fnname'>into_iter</a>(self) -><aclass="struct"href="../arrayvec/struct.IntoIter.html"title="struct arrayvec::IntoIter">IntoIter</a><A></code><aclass='srclink'href='../src/arrayvec/lib.rs.html#681-683'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Creates an iterator from a value. <ahref="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter">Read more</a></p>
</div></div><h3id='impl-TryFrom%3CU%3E'class='impl'><codeclass='in-band'>impl<T, U><aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><U> for T <spanclass="where fmt-newline">where<br> U: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html"title="trait core::convert::Into">Into</a><T>, </span></code><ahref='#impl-TryFrom%3CU%3E'class='anchor'></a><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#571-577'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='associatedtype.Error'class="type"><codeid='Error.t'>type <ahref='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error'class="type">Error</a> = <aclass="enum"href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html"title="enum core::convert::Infallible">Infallible</a></code></h4><divclass='docblock'><p>The type returned in the event of a conversion error.</p>
</div><h4id='method.try_from'class="method hidden"><codeid='try_from.v'>fn <ahref='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from'class='fnname'>try_from</a>(value: U) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><T, <T as <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><U>>::<aclass="type"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error"title="type core::convert::TryFrom::Error">Error</a>></code><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#574-576'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3id='impl-IntoIterator-3'class='impl'><codeclass='in-band'>impl<I><aclass="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 I <spanclass="where fmt-newline">where<br> I: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html"title="trait core::iter::traits::iterator::Iterator">Iterator</a>, </span></code><ahref='#impl-IntoIterator-3'class='anchor'></a><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/iter/traits/collect.rs.html#242-249'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='associatedtype.Item-3'class="type"><codeid='Item.t-3'>type <ahref='https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item'class="type">Item</a> = <I as <aclass="trait"href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html"title="trait core::iter::traits::iterator::Iterator">Iterator</a>>::<aclass="type"href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"title="type core::iter::traits::iterator::Iterator::Item">Item</a></code></h4><divclass='docblock'><p>The type of the elements being iterated over.</p>
</div><h4id='associatedtype.IntoIter-3'class="type"><codeid='IntoIter.t-3'>type <ahref='https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter'class="type">IntoIter</a> = I</code></h4><divclass='docblock'><p>Which kind of iterator are we turning this into?</p>
</div><h4id='method.into_iter-3'class="method hidden"><codeid='into_iter.v-3'>fn <ahref='https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter'class='fnname'>into_iter</a>(self) -> I</code><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/iter/traits/collect.rs.html#246-248'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Creates an iterator from a value. <ahref="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter">Read more</a></p>
</div></div><h3id='impl-Into%3CU%3E'class='impl'><codeclass='in-band'>impl<T, U><aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html"title="trait core::convert::Into">Into</a><U> for T <spanclass="where fmt-newline">where<br> U: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html"title="trait core::convert::From">From</a><T>, </span></code><ahref='#impl-Into%3CU%3E'class='anchor'></a><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#543-548'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='method.into'class="method hidden"><codeid='into.v'>fn <ahref='https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into'class='fnname'>into</a>(self) -> U</code><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#545-547'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3id='impl-TryInto%3CU%3E'class='impl'><codeclass='in-band'>impl<T, U><aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html"title="trait core::convert::TryInto">TryInto</a><U> for T <spanclass="where fmt-newline">where<br> U: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>, </span></code><ahref='#impl-TryInto%3CU%3E'class='anchor'></a><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#559-566'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='associatedtype.Error-1'class="type"><codeid='Error.t-1'>type <ahref='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error'class="type">Error</a> = <U as <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>>::<aclass="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><divclass='docblock'><p>The type returned in the event of a conversion error.</p>
</div><h4id='method.try_into'class="method hidden"><codeid='try_into.v'>fn <ahref='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into'class='fnname'>try_into</a>(self) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><U, <U as <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>>::<aclass="type"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error"title="type core::convert::TryFrom::Error">Error</a>></code><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#563-565'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3id='impl-Borrow%3CT%3E'class='impl'><codeclass='in-band'>impl<T><aclass="trait"href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html"title="trait core::borrow::Borrow">Borrow</a><T> for T <spanclass="where fmt-newline">where<br> T: ?<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>, </span></code><ahref='#impl-Borrow%3CT%3E'class='anchor'></a><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#213-215'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='method.borrow-1'class="method hidden"><codeid='borrow.v-1'>fn <ahref='https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow'class='fnname'>borrow</a>(&self) ->&T</code><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#214'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Immutably borrows from an owned value. <ahref="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
</div></div><h3id='impl-BorrowMut%3CT%3E'class='impl'><codeclass='in-band'>impl<T><aclass="trait"href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html"title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T <spanclass="where fmt-newline">where<br> T: ?<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>, </span></code><ahref='#impl-BorrowMut%3CT%3E'class='anchor'></a><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#218-220'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='method.borrow_mut-1'class="method hidden"><codeid='borrow_mut.v-1'>fn <ahref='https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut'class='fnname'>borrow_mut</a>(&mut self) ->&mut T</code><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#219'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Mutably borrows from an owned value. <ahref="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
</div></div><h3id='impl-Any'class='impl'><codeclass='in-band'>impl<T><aclass="trait"href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html"title="trait core::any::Any">Any</a> for T <spanclass="where fmt-newline">where<br> T: 'static + ?<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>, </span></code><ahref='#impl-Any'class='anchor'></a><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#100-102'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='method.type_id'class="method hidden"><codeid='type_id.v'>fn <ahref='https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id'class='fnname'>type_id</a>(&self) -><aclass="struct"href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html"title="struct core::any::TypeId">TypeId</a></code><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#101'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <ahref="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
</div></div></div></section><sectionid="search"class="content hidden"></section><sectionclass="footer"></section><asideid="help"class="hidden"><div><h1class="hidden">Help</h1><divclass="shortcuts"><h2>Keyboard Shortcuts</h2><dl><dt><kbd>?</kbd></dt><dd>Show this help dialog</dd><dt><kbd>S</kbd></dt><dd>Focus the search field</dd><dt><kbd>↑</kbd></dt><dd>Move up in search results</dd><dt><kbd>↓</kbd></dt><dd>Move down in search results</dd><dt><kbd>↹</kbd></dt><dd>Switch tab</dd><dt><kbd>⏎</kbd></dt><dd>Go to active search result</dd><dt><kbd>+</kbd></dt><dd>Expand all sections</dd><dt><kbd>-</kbd></dt><dd>Collapse all sections</dd></dl></div><divclass="infos"><h2>Search Tricks</h2><p>Prefix searches with a type followed by a colon (e.g., <code>fn:</code>) to restrict the search to a given type.</p><p>Accepted types are: <code>fn</code>, <code>mod</code>, <code>struct</code>, <code>enum</code>, <code>trait</code>, <code>type</code>, <code>macro</code>, and <code>const</code>.</p><p>Search functions by type signature (e.g., <code>vec -> usize</code> or <code>* -> vec</code>)</p><p>Search multiple things at once by splitting your query with comma (e.g., <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath="../";window.currentCrate="arrayvec";</script><scriptsrc="../aliases.js"></script><scriptsrc="../main.js"></script><scriptdefersrc="../search-index.js"></script></body></html>