<!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 `SmallVec` struct in crate `smallvec`."><metaname="keywords"content="rust, rustlang, rust-lang, SmallVec"><title>smallvec::SmallVec - 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='../smallvec/index.html'><divclass='logo-container'><imgsrc='../rust-logo.png'alt='logo'></div></a><pclass='location'>Struct SmallVec</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.dedup">dedup</a><ahref="#method.dedup_by">dedup_by</a><ahref="#method.dedup_by_key">dedup_by_key</a><ahref="#method.drain">drain</a><ahref="#method.extend_from_slice">extend_from_slice</a><ahref="#method.from_buf">from_buf</a><ahref="#method.from_buf_and_len">from_buf_and_len</a><ahref="#method.from_buf_and_len_unchecked">from_buf_and_len_unchecked</a><ahref="#method.from_elem">from_elem</a><ahref="#method.from_raw_parts">from_raw_parts</a><ahref="#method.from_slice">from_slice</a><ahref="#method.from_vec">from_vec</a><ahref="#method.grow">grow</a><ahref="#method.inline_size">inline_size</a><ahref="#method.insert">insert</a><ahref="#method.insert_from_slice">insert_from_slice</a><ahref="#method.insert_many">insert_many</a><ahref="#method.into_inner">into_inner</a><ahref="#method.into_vec">into_vec</a><ahref="#method.is_empty">is_empty</a><ahref="#method.len">len</a><ahref="#method.new">new</a><ahref="#method.pop">pop</a><ahref="#method.push">push</a><ahref="#method.remove">remove</a><ahref="#method.reserve">reserve</a><ahref="#method.reserve_exact">reserve_exact</a><ahref="#method.resize">resize</a><ahref="#method.retain">retain</a><ahref="#method.set_len">set_len</a><ahref="#method.shrink_to_fit">shrink_to_fit</a><ahref="#method.spilled">spilled</a><ahref="#method.swap_remove">swap_remove</a><ahref="#method.truncate">truncate</a><ahref="#method.with_capacity">with_capacity</a></div><aclass="sidebar-title"href="#deref-methods">Methods from Deref<Target=[A::Item]></a><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-ExtendFromSlice%3C%3CA%20as%20Array%3E%3A%3AItem%3E">ExtendFromSlice<<A as Array>::Item></a><a
<p><code>SmallVec</code> acts like a vector, but can store a limited amount of data inline within the
<code>SmallVec</code> struct rather than in a separate allocation. If the data exceeds this limit, the
<code>SmallVec</code> will "spill" its data onto the heap, allocating a new buffer to hold it.</p>
<p>The amount of data that a <code>SmallVec</code> can store inline depends on its backing store. The backing
store can be any type that implements the <code>Array</code> trait; usually it is a small fixed-sized
array. For example a <code>SmallVec<[u64; 8]></code> can hold up to eight 64-bit integers inline.</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="../smallvec/trait.Array.html"title="trait smallvec::Array">Array</a>><aclass="struct"href="../smallvec/struct.SmallVec.html"title="struct smallvec::SmallVec">SmallVec</a><A></code><ahref='#impl'class='anchor'></a><aclass='srclink'href='../src/smallvec/lib.rs.html#403-1033'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='method.new'class="method"><divclass="important-traits"><divclass='tooltip'>ⓘ<spanclass='tooltiptext'>Important traits for <aclass="struct"href="../smallvec/struct.SmallVec.html"title="struct smallvec::SmallVec">SmallVec</a><A></span></div><divclass="content hidden"><h3class="important">Important traits for <aclass="struct"href="../smallvec/struct.SmallVec.html"title="struct smallvec::SmallVec">SmallVec</a><A></h3><codeclass="content"><spanclass="where fmt-newline">impl<A: <aclass="trait"href="../smallvec/trait.Array.html"title="trait smallvec::Array">Array</a><Item = <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>>><aclass="trait"href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html"title="trait std::io::Write">Write</a> for <aclass="struct"href="../smallvec/struct.SmallVec.html"title="struct smallvec::SmallVec">SmallVec</a><A></span></code></div></div><codeid='new.v'>pub fn <ahref='#method.new'class='fnname'>new</a>() -><aclass="struct"href="../smallvec/struct.SmallVec.html"title="struct smallvec::SmallVec">SmallVec</a><A></code><aclass='srclink'href='../src/smallvec/lib.rs.html#406-413'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Construct an empty vector</p>
</div><h4id='method.with_capacity'class="method"><codeid='with_capacity.v'>pub fn <ahref='#method.with_capacity'class='fnname'>with_capacity</a>(n: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -> Self</code><aclass='srclink'href='../src/smallvec/lib.rs.html#429-433'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Construct an empty vector with enough capacity pre-allocated to store at least <code>n</code>
elements.</p>
<p>Will create a heap allocation only if <code>n</code> is larger than the inline capacity.</p>
</div><h4id='method.from_vec'class="method"><divclass="important-traits"><divclass='tooltip'>ⓘ<spanclass='tooltiptext'>Important traits for <aclass="struct"href="../smallvec/struct.SmallVec.html"title="struct smallvec::SmallVec">SmallVec</a><A></span></div><divclass="content hidden"><h3class="important">Important traits for <aclass="struct"href="../smallvec/struct.SmallVec.html"title="struct smallvec::SmallVec">SmallVec</a><A></h3><codeclass="content"><spanclass="where fmt-newline">impl<A: <aclass="trait"href="../smallvec/trait.Array.html"title="trait smallvec::Array">Array</a><Item = <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>>><aclass="trait"href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html"title="trait std::io::Write">Write</a> for <aclass="struct"href="../smallvec/struct.SmallVec.html"title="struct smallvec::SmallVec">SmallVec</a><A></span></code></div></div><codeid='from_vec.v'>pub fn <ahref='#method.from_vec'class='fnname'>from_vec</a>(vec: <aclass="struct"href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html"title="struct alloc::vec::Vec">Vec</a><A::<aclass="type"href="../smallvec/trait.Array.html#associatedtype.Item"title="type smallvec::Array::Item">Item</a>>) -><aclass="struct"href="../smallvec/struct.SmallVec.html"title="struct smallvec::SmallVec">SmallVec</a><A></code><aclass='srclink'href='../src/smallvec/lib.rs.html#448-470'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Construct a new <code>SmallVec</code> from a <code>Vec<A::Item></code>.</p>
<p>Elements will be copied to the inline buffer if vec.capacity() <= A::size().</p>
</div><h4id='method.from_buf'class="method"><divclass="important-traits"><divclass='tooltip'>ⓘ<spanclass='tooltiptext'>Important traits for <aclass="struct"href="../smallvec/struct.SmallVec.html"title="struct smallvec::SmallVec">SmallVec</a><A></span></div><divclass="content hidden"><h3class="important">Important traits for <aclass="struct"href="../smallvec/struct.SmallVec.html"title="struct smallvec::SmallVec">SmallVec</a><A></h3><codeclass="content"><spanclass="where fmt-newline">impl<A: <aclass="trait"href="../smallvec/trait.Array.html"title="trait smallvec::Array">Array</a><Item = <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>>><aclass="trait"href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html"title="trait std::io::Write">Write</a> for <aclass="struct"href="../smallvec/struct.SmallVec.html"title="struct smallvec::SmallVec">SmallVec</a><A></span></code></div></div><codeid='from_buf.v'>pub fn <ahref='#method.from_buf'class='fnname'>from_buf</a>(buf: A) -><aclass="struct"href="../smallvec/struct.SmallVec.html"title="struct smallvec::SmallVec">SmallVec</a><A></code><aclass='srclink'href='../src/smallvec/lib.rs.html#484-489'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Constructs a new <code>SmallVec</code> on the stack from an <code>A</code> without
</div><h4id='method.from_buf_and_len'class="method"><divclass="important-traits"><divclass='tooltip'>ⓘ<spanclass='tooltiptext'>Important traits for <aclass="struct"href="../smallvec/struct.SmallVec.html"title="struct smallvec::SmallVec">SmallVec</a><A></span></div><divclass="content hidden"><h3class="important">Important traits for <aclass="struct"href="../smallvec/struct.SmallVec.html"title="struct smallvec::SmallVec">SmallVec</a><A></h3><codeclass="content"><spanclass="where fmt-newline">impl<A: <aclass="trait"href="../smallvec/trait.Array.html"title="trait smallvec::Array">Array</a><Item = <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>>><aclass="trait"href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html"title="trait std::io::Write">Write</a> for <aclass="struct"href="../smallvec/struct.SmallVec.html"title="struct smallvec::SmallVec">SmallVec</a><A></span></code></div></div><codeid='from_buf_and_len.v'>pub fn <ahref='#method.from_buf_and_len'class='fnname'>from_buf_and_len</a>(buf: A, len: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -><aclass="struct"href="../smallvec/struct.SmallVec.html"title="struct smallvec::SmallVec">SmallVec</a><A></code><aclass='srclink'href='../src/smallvec/lib.rs.html#504-507'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Constructs a new <code>SmallVec</code> on the stack from an <code>A</code> without
copying elements. Also sets the length, which must be less or
</div><h4id='method.from_buf_and_len_unchecked'class="method"><divclass="important-traits"><divclass='tooltip'>ⓘ<spanclass='tooltiptext'>Important traits for <aclass="struct"href="../smallvec/struct.SmallVec.html"title="struct smallvec::SmallVec">SmallVec</a><A></span></div><divclass="content hidden"><h3class="important">Important traits for <aclass="struct"href="../smallvec/struct.SmallVec.html"title="struct smallvec::SmallVec">SmallVec</a><A></h3><codeclass="content"><spanclass="where fmt-newline">impl<A: <aclass="trait"href="../smallvec/trait.Array.html"title="trait smallvec::Array">Array</a><Item = <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>>><aclass="trait"href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html"title="trait std::io::Write">Write</a> for <aclass="struct"href="../smallvec/struct.SmallVec.html"title="struct smallvec::SmallVec">SmallVec</a><A></span></code></div></div><codeid='from_buf_and_len_unchecked.v'>pub unsafe fn <ahref='#method.from_buf_and_len_unchecked'class='fnname'>from_buf_and_len_unchecked</a>(buf: A, len: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -><aclass="struct"href="../smallvec/struct.SmallVec.html"title="struct smallvec::SmallVec">SmallVec</a><A></code><aclass='srclink'href='../src/smallvec/lib.rs.html#524-529'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Constructs a new <code>SmallVec</code> on the stack from an <code>A</code> without
copying elements. Also sets the length. The user is responsible
for ensuring that <code>len <= A::size()</code>.</p>
</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, new_len: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>)</code><aclass='srclink'href='../src/smallvec/lib.rs.html#537-540'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Sets the length of a vector.</p>
<p>This will explicitly set the size of the vector, without actually
modifying its buffers, so it is up to the caller to ensure that the
vector is actually the specified size.</p>
</div><h4id='method.inline_size'class="method"><codeid='inline_size.v'>pub fn <ahref='#method.inline_size'class='fnname'>inline_size</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></code><aclass='srclink'href='../src/smallvec/lib.rs.html#544-546'title='goto source code'>[src]</a></h4><divclass='docblock'><p>The maximum number of elements this vector can hold inline</p>
</div><h4id='method.len'class="method"><codeid='len.v'>pub fn <ahref='#method.len'class='fnname'>len</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></code><aclass='srclink'href='../src/smallvec/lib.rs.html#550-552'title='goto source code'>[src]</a></h4><divclass='docblock'><p>The number of elements stored in the vector</p>
</div><h4id='method.is_empty'class="method"><codeid='is_empty.v'>pub fn <ahref='#method.is_empty'class='fnname'>is_empty</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><aclass='srclink'href='../src/smallvec/lib.rs.html#556-558'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Returns <code>true</code> if the vector is empty</p>
</div><h4id='method.capacity'class="method"><codeid='capacity.v'>pub fn <ahref='#method.capacity'class='fnname'>capacity</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></code><aclass='srclink'href='../src/smallvec/lib.rs.html#562-564'title='goto source code'>[src]</a></h4><divclass='docblock'><p>The number of items the vector can hold without reallocating</p>
</div><h4id='method.spilled'class="method"><codeid='spilled.v'>pub fn <ahref='#method.spilled'class='fnname'>spilled</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><aclass='srclink'href='../src/smallvec/lib.rs.html#595-597'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Returns <code>true</code> if the data has spilled into a separate heap-allocated buffer.</p>
</div><h4id='method.drain'class="method"><divclass="important-traits"><divclass='tooltip'>ⓘ<spanclass='tooltiptext'>Important traits for <aclass="struct"href="../smallvec/struct.Drain.html"title="struct smallvec::Drain">Drain</a><'a, T></span></div><divclass="content hidden"><h3class="important">Important traits for <aclass="struct"href="../smallvec/struct.Drain.html"title="struct smallvec::Drain">Drain</a><'a, T></h3><codeclass="content"><spanclass="where fmt-newline">impl<'a, T: '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="../smallvec/struct.Drain.html"title="struct smallvec::Drain">Drain</a><'a, T></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> = T;</span></code></div></div><codeid='drain.v'>pub fn <ahref='#method.drain'class='fnname'>drain</a>(&mut self) -><aclass="struct"href="../smallvec/struct.Drain.html"title="struct smallvec::Drain">Drain</a><A::<aclass="type"href="../smallvec/trait.Array.html#associatedtype.Item"title="type smallvec::Array::Item">Item</a>></code><aclass='srclink'href='../src/smallvec/lib.rs.html#600-613'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Empty the vector and return an iterator over its former contents.</p>
</div><h4id='method.push'class="method"><codeid='push.v'>pub fn <ahref='#method.push'class='fnname'>push</a>(&mut self, value: A::<aclass="type"href="../smallvec/trait.Array.html#associatedtype.Item"title="type smallvec::Array::Item">Item</a>)</code><aclass='srclink'href='../src/smallvec/lib.rs.html#617-627'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Append an item to the vector.</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="../smallvec/trait.Array.html#associatedtype.Item"title="type smallvec::Array::Item">Item</a>></code><aclass='srclink'href='../src/smallvec/lib.rs.html#631-641'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Remove an item from the end of the vector and return it, or None if empty.</p>
</div><h4id='method.grow'class="method"><codeid='grow.v'>pub fn <ahref='#method.grow'class='fnname'>grow</a>(&mut self, new_cap: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>)</code><aclass='srclink'href='../src/smallvec/lib.rs.html#646-673'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Re-allocate to set the capacity to <code>max(new_cap, inline_size())</code>.</p>
<p>Panics if <code>new_cap</code> is less than the vector's length.</p>
</div><h4id='method.reserve'class="method"><codeid='reserve.v'>pub fn <ahref='#method.reserve'class='fnname'>reserve</a>(&mut self, additional: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>)</code><aclass='srclink'href='../src/smallvec/lib.rs.html#683-694'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Reserve capacity for <code>additional</code> more elements to be inserted.</p>
<p>May reserve more space to avoid frequent reallocations.</p>
<p>If the new capacity would overflow <code>usize</code> then it will be set to <code>usize::max_value()</code>
instead. (This means that inserting <code>additional</code> new elements is not guaranteed to be
possible after calling this function.)</p>
</div><h4id='method.reserve_exact'class="method"><codeid='reserve_exact.v'>pub fn <ahref='#method.reserve_exact'class='fnname'>reserve_exact</a>(&mut self, additional: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>)</code><aclass='srclink'href='../src/smallvec/lib.rs.html#699-707'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Reserve the minimum capacity for <code>additional</code> more elements to be inserted.</p>
<p>Panics if the new capacity overflows <code>usize</code>.</p>
</div><h4id='method.shrink_to_fit'class="method"><codeid='shrink_to_fit.v'>pub fn <ahref='#method.shrink_to_fit'class='fnname'>shrink_to_fit</a>(&mut self)</code><aclass='srclink'href='../src/smallvec/lib.rs.html#713-729'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Shrink the capacity of the vector as much as possible.</p>
<p>When possible, this will move data from an external heap buffer to the vector's inline
storage.</p>
</div><h4id='method.truncate'class="method"><codeid='truncate.v'>pub fn <ahref='#method.truncate'class='fnname'>truncate</a>(&mut self, len: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>)</code><aclass='srclink'href='../src/smallvec/lib.rs.html#738-747'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Shorten the vector, keeping the first <code>len</code> elements and dropping the rest.</p>
<p>If <code>len</code> is greater than or equal to the vector's current length, this has no
effect.</p>
<p>This does not re-allocate. If you want the vector's capacity to shrink, call
<code>shrink_to_fit</code> after truncating.</p>
</div><h4id='method.as_slice'class="method"><codeid='as_slice.v'>pub fn <ahref='#method.as_slice'class='fnname'>as_slice</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&[</a>A::<aclass="type"href="../smallvec/trait.Array.html#associatedtype.Item"title="type smallvec::Array::Item">Item</a><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a></code><aclass='srclink'href='../src/smallvec/lib.rs.html#752-754'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Extracts a slice containing the entire vector.</p>
<p>Equivalent to <code>&s[..]</code>.</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) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&mut [</a>A::<aclass="type"href="../smallvec/trait.Array.html#associatedtype.Item"title="type smallvec::Array::Item">Item</a><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a></code><aclass='srclink'href='../src/smallvec/lib.rs.html#759-761'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Extracts a mutable slice of the entire vector.</p>
<p>Equivalent to <code>&mut s[..]</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: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -> A::<aclass="type"href="../smallvec/trait.Array.html#associatedtype.Item"title="type smallvec::Array::Item">Item</a></code><aclass='srclink'href='../src/smallvec/lib.rs.html#769-773'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Remove the element at position <code>index</code>, replacing it with the last element.</p>
<p>This does not preserve ordering, but is O(1).</p>
<p>Panics if <code>index</code> is out of bounds.</p>
</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/smallvec/lib.rs.html#777-779'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Remove all elements from the vector.</p>
</div><h4id='method.remove'class="method"><codeid='remove.v'>pub fn <ahref='#method.remove'class='fnname'>remove</a>(&mut self, index: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -> A::<aclass="type"href="../smallvec/trait.Array.html#associatedtype.Item"title="type smallvec::Array::Item">Item</a></code><aclass='srclink'href='../src/smallvec/lib.rs.html#785-796'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Remove and return the element at position <code>index</code>, shifting all elements after it to the
left.</p>
<p>Panics if <code>index</code> is out of bounds.</p>
</div><h4id='method.insert'class="method"><codeid='insert.v'>pub fn <ahref='#method.insert'class='fnname'>insert</a>(&mut self, index: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>, element: A::<aclass="type"href="../smallvec/trait.Array.html#associatedtype.Item"title="type smallvec::Array::Item">Item</a>)</code><aclass='srclink'href='../src/smallvec/lib.rs.html#801-813'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Insert an element at position <code>index</code>, shifting all elements after it to the right.</p>
<p>Panics if <code>index</code> is out of bounds.</p>
</div><h4id='method.insert_many'class="method"><codeid='insert_many.v'>pub fn <ahref='#method.insert_many'class='fnname'>insert_many</a><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><Item = A::<aclass="type"href="../smallvec/trait.Array.html#associatedtype.Item"title="type smallvec::Array::Item">Item</a>>>(<br> &mut self, <br> index: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>, <br> iterable: I<br>)</code><aclass='srclink'href='../src/smallvec/lib.rs.html#817-859'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Insert multiple elements at position <code>index</code>, shifting all following elements toward the
back.</p>
</div><h4id='method.into_vec'class="method"><codeid='into_vec.v'>pub fn <ahref='#method.into_vec'class='fnname'>into_vec</a>(self) -><aclass="struct"href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html"title="struct alloc::vec::Vec">Vec</a><A::<aclass="type"href="../smallvec/trait.Array.html#associatedtype.Item"title="type smallvec::Array::Item">Item</a>></code><aclass='srclink'href='../src/smallvec/lib.rs.html#863-874'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Convert a SmallVec to a Vec, without reallocating if the SmallVec has already spilled onto
the heap.</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/smallvec/lib.rs.html#880-890'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Convert the SmallVec into an <code>A</code> if possible. Otherwise return <code>Err(Self)</code>.</p>
<p>This method returns <code>Err(Self)</code> if the SmallVec is too short (and the <code>A</code> contains uninitialized elements),
or if the SmallVec is too long (and all the elements were spilled to the heap).</p>
</div><h4id='method.retain'class="method"><codeid='retain.v'>pub fn <ahref='#method.retain'class='fnname'>retain</a><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="../smallvec/trait.Array.html#associatedtype.Item"title="type smallvec::Array::Item">Item</a>) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>>(&mut self, f: F)</code><aclass='srclink'href='../src/smallvec/lib.rs.html#897-908'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(&e)</code> returns <code>false</code>.
This method operates in place and preserves the order of the retained
</div><h4id='method.dedup_by'class="method"><codeid='dedup_by.v'>pub fn <ahref='#method.dedup_by'class='fnname'>dedup_by</a><F>(&mut self, same_bucket: 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="../smallvec/trait.Array.html#associatedtype.Item"title="type smallvec::Array::Item">Item</a>, &mut A::<aclass="type"href="../smallvec/trait.Array.html#associatedtype.Item"title="type smallvec::Array::Item">Item</a>) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>, </span></code><aclass='srclink'href='../src/smallvec/lib.rs.html#916-944'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Removes consecutive duplicate elements using the given equality relation.</p>
</div><h4id='method.dedup_by_key'class="method"><codeid='dedup_by_key.v'>pub fn <ahref='#method.dedup_by_key'class='fnname'>dedup_by_key</a><F, K>(&mut self, key: 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="../smallvec/trait.Array.html#associatedtype.Item"title="type smallvec::Array::Item">Item</a>) -> K,<br> K: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html"title="trait core::cmp::PartialEq">PartialEq</a><K>, </span></code><aclass='srclink'href='../src/smallvec/lib.rs.html#947-952'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Removes consecutive elements that map to the same key.</p>
</div><h4id='method.from_raw_parts'class="method"><divclass="important-traits"><divclass='tooltip'>ⓘ<spanclass='tooltiptext'>Important traits for <aclass="struct"href="../smallvec/struct.SmallVec.html"title="struct smallvec::SmallVec">SmallVec</a><A></span></div><divclass="content hidden"><h3class="important">Important traits for <aclass="struct"href="../smallvec/struct.SmallVec.html"title="struct smallvec::SmallVec">SmallVec</a><A></h3><codeclass="content"><spanclass="where fmt-newline">impl<A: <aclass="trait"href="../smallvec/trait.Array.html"title="trait smallvec::Array">Array</a><Item = <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>>><aclass="trait"href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html"title="trait std::io::Write">Write</a> for <aclass="struct"href="../smallvec/struct.SmallVec.html"title="struct smallvec::SmallVec">SmallVec</a><A></span></code></div></div><codeid='from_raw_parts.v'>pub unsafe fn <ahref='#method.from_raw_parts'class='fnname'>from_raw_parts</a>(<br> ptr: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.pointer.html">*mut </a>A::<aclass="type"href="../smallvec/trait.Array.html#associatedtype.Item"title="type smallvec::Array::Item">Item</a>, <br> length: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>, <br> capacity: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a><br>) -><aclass="struct"href="../smallvec/struct.SmallVec.html"title="struct smallvec::SmallVec">SmallVec</a><A></code><aclass='srclink'href='../src/smallvec/lib.rs.html#1022-1032'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Creates a <code>SmallVec</code> directly from the raw components of another
</div></div><h3id='impl-1'class='impl'><codeclass='in-band'>impl<A: <aclass="trait"href="../smallvec/trait.Array.html"title="trait smallvec::Array">Array</a>><aclass="struct"href="../smallvec/struct.SmallVec.html"title="struct smallvec::SmallVec">SmallVec</a><A><spanclass="where fmt-newline">where<br> A::<aclass="type"href="../smallvec/trait.Array.html#associatedtype.Item"title="type smallvec::Array::Item">Item</a>: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html"title="trait core::marker::Copy">Copy</a>, </span></code><ahref='#impl-1'class='anchor'></a><aclass='srclink'href='../src/smallvec/lib.rs.html#1035-1088'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='method.from_slice'class="method"><codeid='from_slice.v'>pub fn <ahref='#method.from_slice'class='fnname'>from_slice</a>(slice: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&[</a>A::<aclass="type"href="../smallvec/trait.Array.html#associatedtype.Item"title="type smallvec::Array::Item">Item</a><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>) -> Self</code><aclass='srclink'href='../src/smallvec/lib.rs.html#1039-1059'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Copy the elements from a slice into a new <code>SmallVec</code>.</p>
<p>For slices of <code>Copy</code> types, this is more efficient than <code>SmallVec::from(slice)</code>.</p>
</div><h4id='method.insert_from_slice'class="method"><codeid='insert_from_slice.v'>pub fn <ahref='#method.insert_from_slice'class='fnname'>insert_from_slice</a>(&mut self, index: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>, slice: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&[</a>A::<aclass="type"href="../smallvec/trait.Array.html#associatedtype.Item"title="type smallvec::Array::Item">Item</a><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>)</code><aclass='srclink'href='../src/smallvec/lib.rs.html#1065-1078'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Copy elements from a slice into the vector at position <code>index</code>, shifting any following
elements toward the back.</p>
<p>For slices of <code>Copy</code> types, this is more efficient than <code>insert</code>.</p>
</div><h4id='method.extend_from_slice'class="method"><codeid='extend_from_slice.v'>pub fn <ahref='#method.extend_from_slice'class='fnname'>extend_from_slice</a>(&mut self, slice: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&[</a>A::<aclass="type"href="../smallvec/trait.Array.html#associatedtype.Item"title="type smallvec::Array::Item">Item</a><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>)</code><aclass='srclink'href='../src/smallvec/lib.rs.html#1084-1087'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Copy elements from a slice and append them to the vector.</p>
<p>For slices of <code>Copy</code> types, this is more efficient than <code>extend</code>.</p>
</div></div><h3id='impl-2'class='impl'><codeclass='in-band'>impl<A: <aclass="trait"href="../smallvec/trait.Array.html"title="trait smallvec::Array">Array</a>><aclass="struct"href="../smallvec/struct.SmallVec.html"title="struct smallvec::SmallVec">SmallVec</a><A><spanclass="where fmt-newline">where<br> A::<aclass="type"href="../smallvec/trait.Array.html#associatedtype.Item"title="type smallvec::Array::Item">Item</a>: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html"title="trait core::clone::Clone">Clone</a>, </span></code><ahref='#impl-2'class='anchor'></a><aclass='srclink'href='../src/smallvec/lib.rs.html#1090-1131'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='method.resize'class="method"><codeid='resize.v'>pub fn <ahref='#method.resize'class='fnname'>resize</a>(&mut self, len: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>, value: A::<aclass="type"href="../smallvec/trait.Array.html#associatedtype.Item"title="type smallvec::Array::Item">Item</a>)</code><aclass='srclink'href='../src/smallvec/lib.rs.html#1097-1105'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Resizes the vector so that its length is equal to <code>len</code>.</p>
<p>If <code>len</code> is less than the current length, the vector simply truncated.</p>
<p>If <code>len</code> is greater than the current length, <code>value</code> is appended to the
vector until its length equals <code>len</code>.</p>
</div><h4id='method.from_elem'class="method"><codeid='from_elem.v'>pub fn <ahref='#method.from_elem'class='fnname'>from_elem</a>(elem: A::<aclass="type"href="../smallvec/trait.Array.html#associatedtype.Item"title="type smallvec::Array::Item">Item</a>, n: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -> Self</code><aclass='srclink'href='../src/smallvec/lib.rs.html#1114-1130'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Creates a <code>SmallVec</code> with <code>n</code> copies of <code>elem</code>.</p>
</div></div><h2id='implementations'class='small-section-header'>Trait Implementations<ahref='#implementations'class='anchor'></a></h2><divid='implementations-list'><h3id='impl-VecLike%3C%3CA%20as%20Array%3E%3A%3AItem%3E'class='impl'><codeclass='in-band'>impl<A: <aclass="trait"href="../smallvec/trait.Array.html"title="trait smallvec::Array">Array</a>><aclass="trait"href="../smallvec/trait.VecLike.html"title="trait smallvec::VecLike">VecLike</a><<A as <aclass="trait"href="../smallvec/trait.Array.html"title="trait smallvec::Array">Array</a>>::<aclass="type"href="../smallvec/trait.Array.html#associatedtype.Item"title="type smallvec::Array::Item">Item</a>> for <aclass="struct"href="../smallvec/struct.SmallVec.html"title="struct smallvec::SmallVec">SmallVec</a><A></code><ahref='#impl-VecLike%3C%3CA%20as%20Array%3E%3A%3AItem%3E'class='anchor'></a><aclass='srclink'href='../src/smallvec/lib.rs.html#1332-1337'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='method.push-1'class="method hidden"><codeid='push.v-1'>fn <ahref='../smallvec/trait.VecLike.html#tymethod.push'class='fnname'>push</a>(&mut self, value: A::<aclass="type"href="../smallvec/trait.Array.html#associatedtype.Item"title="type smallvec::Array::Item">Item</a>)</code><aclass='srclink'href='../src/smallvec/lib.rs.html#1334-1336'title='goto source code'>[src]</a></h4><divclass='stability hidden'><divclass='stab deprecated'>Deprecated: <p>Use <code>Extend</code> and <code>Deref<[T]></code> instead</p>
</div></div><divclass='docblock hidden'><p>Append an element to the vector.</p>
</div></div><h3id='impl-ExtendFromSlice%3C%3CA%20as%20Array%3E%3A%3AItem%3E'class='impl'><codeclass='in-band'>impl<A: <aclass="trait"href="../smallvec/trait.Array.html"title="trait smallvec::Array">Array</a>><aclass="trait"href="../smallvec/trait.ExtendFromSlice.html"title="trait smallvec::ExtendFromSlice">ExtendFromSlice</a><<A as <aclass="trait"href="../smallvec/trait.Array.html"title="trait smallvec::Array">Array</a>>::<aclass="type"href="../smallvec/trait.Array.html#associatedtype.Item"title="type smallvec::Array::Item">Item</a>> for <aclass="struct"href="../smallvec/struct.SmallVec.html"title="struct smallvec::SmallVec">SmallVec</a><A><spanclass="where fmt-newline">where<br> A::<aclass="type"href="../smallvec/trait.Array.html#associatedtype.Item"title="type smallvec::Array::Item">Item</a>: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html"title="trait core::marker::Copy">Copy</a>, </span></code><ahref='#impl-ExtendFromSlice%3C%3CA%20as%20Array%3E%3A%3AItem%3E'class='anchor'></a><aclass='srclink'href='../src/smallvec/lib.rs.html#1325-1329'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='method.extend_from_slice-1'class="method hidden"><codeid='extend_from_slice.v-1'>fn <ahref='../smallvec/trait.ExtendFromSlice.html#tymethod.extend_from_slice'class='fnname'>extend_from_slice</a>(&mut self, other: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&[</a>A::<aclass="type"href="../smallvec/trait.Array.html#associatedtype.Item"title="type smallvec::Array::Item">Item</a><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>)</code><aclass='srclink'href='../src/smallvec/lib.rs.html#1326-1328'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Extends a collection from a slice of its element type</p>
</div></div><h3id='impl-AsRef%3C%5B%3CA%20as%20Array%3E%3A%3AItem%5D%3E'class='impl'><codeclass='in-band'>impl<A: <aclass="trait"href="../smallvec/trait.Array.html"title="trait smallvec::Array">Array</a>><aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html"title="trait core::convert::AsRef">AsRef</a><<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">[</a><A as <aclass="trait"href="../smallvec/trait.Array.html"title="trait smallvec::Array">Array</a>>::<aclass="type"href="../smallvec/trait.Array.html#associatedtype.Item"title="type smallvec::Array::Item">Item</a><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>> for <aclass="struct"href="../smallvec/struct.SmallVec.html"title="struct smallvec::SmallVec">SmallVec</a><A></code><ahref='#impl-AsRef%3C%5B%3CA%20as%20Array%3E%3A%3AItem%5D%3E'class='anchor'></a><aclass='srclink'href='../src/smallvec/lib.rs.html#1154-1159'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='method.as_ref'class="method hidden"><codeid='as_ref.v'>fn <ahref='https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref'class='fnname'>as_ref</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&[</a>A::<aclass="type"href="../smallvec/trait.Array.html#associatedtype.Item"title="type smallvec::Array::Item">Item</a><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a></code><aclass='srclink'href='../src/smallvec/lib.rs.html#1156-1158'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3id='impl-Extend%3C%3CA%20as%20Array%3E%3A%3AItem%3E'class='impl'><codeclass='in-band'>impl<A: <aclass="trait"href="../smallvec/trait.Array.html"title="trait smallvec::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="../smallvec/trait.Array.html"title="trait smallvec::Array">Array</a>>::<aclass="type"href="../smallvec/trait.Array.html#associatedtype.Item"title="type smallvec::Array::Item">Item</a>> for <aclass="struct"href="../smallvec/struct.SmallVec.html"title="struct smallvec::SmallVec">SmallVec</a><A></code><ahref='#impl-Extend%3C%3CA%20as%20Array%3E%3A%3AItem%3E'class='anchor'></a><aclass='srclink'href='../src/smallvec/lib.rs.html#1347-1370'title='goto source code'>[src]</a></h3><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><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><Item = A::<aclass="type"href="../smallvec/trait.Array.html#associatedtype.Item"title="type smallvec::Array::Item">Item</a>>>(&mut self, iterable: I)</code><aclass='srclink'href='../src/smallvec/lib.rs.html#1348-1369'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>
</span>fn <ahref='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.lt'class='fnname'>lt</a>(&self, other: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Rhs) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></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#793-798'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>
</span>fn <ahref='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.le'class='fnname'>le</a>(&self, other: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Rhs) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></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#815-820'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>
</span>fn <ahref='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.gt'class='fnname'>gt</a>(&self, other: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Rhs) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></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#836-841'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>
</span>fn <ahref='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.ge'class='fnname'>ge</a>(&self, other: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Rhs) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></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#858-863'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></div><h3id='impl-Ord'class='impl'><codeclass='in-band'>impl<A: <aclass="trait"href="../smallvec/trait.Array.html"title="trait smallvec::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="../smallvec/struct.SmallVec.html"title="struct smallvec::SmallVec">SmallVec</a><A><spanclass="where fmt-newline">where<br> A::<aclass="type"href="../smallvec/trait.Array.html#associatedtype.Item"title="type smallvec::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/smallvec/lib.rs.html#1440-1445'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="../smallvec/struct.SmallVec.html"title="struct smallvec::SmallVec">SmallVec</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/smallvec/lib.rs.html#1442-1444'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-PartialEq%3CSmallVec%3CB%3E%3E'class='impl'><codeclass='in-band'>impl<A: <aclass="trait"href="../smallvec/trait.Array.html"title="trait smallvec::Array">Array</a>, B: <aclass="trait"href="../smallvec/trait.Array.html"title="trait smallvec::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="../smallvec/struct.SmallVec.html"title="struct smallvec::SmallVec">SmallVec</a><B>> for <aclass="struct"href="../smallvec/struct.SmallVec.html"title="struct smallvec::SmallVec">SmallVec</a><A><spanclass="where fmt-newline">where<br> A::<aclass="type"href="../smallvec/trait.Array.html#associatedtype.Item"title="type smallvec::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><B::<aclass="type"href="../smallvec/trait.Array.html#associatedtype.Item"title="type smallvec::Array::Item">Item</a>>, </span></code><ahref='#impl-PartialEq%3CSmallVec%3CB%3E%3E'class='anchor'></a><aclass='srclink'href='../src/smallvec/lib.rs.html#1423-1429'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: &<aclass="struct"href="../smallvec/struct.SmallVec.html"title="struct smallvec::SmallVec">SmallVec</a><B>) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><aclass='srclink'href='../src/smallvec/lib.rs.html#1426'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>
</div></div><h3id='impl-IntoIterator'class='impl'><codeclass='in-band'>impl<A: <aclass="trait"href="../smallvec/trait.Array.html"title="trait smallvec::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="../smallvec/struct.SmallVec.html"title="struct smallvec::SmallVec">SmallVec</a><A></code><ahref='#impl-IntoIterator'class='anchor'></a><aclass='srclink'href='../src/smallvec/lib.rs.html#1513-1528'title='goto source code'>[src]</a></h3><divclass='impl-items'><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="../smallvec/struct.IntoIter.html"title="struct smallvec::IntoIter">IntoIter</a><A></code></h4><divclass='docblock'><p>Which kind of iterator are we turning this into?</p>
</div><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::<aclass="type"href="../smallvec/trait.Array.html#associatedtype.Item"title="type smallvec::Array::Item">Item</a></code></h4><divclass='docblock'><p>The type of the elements being iterated over.</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/smallvec/lib.rs.html#1516-1527'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="../smallvec/trait.Array.html"title="trait smallvec::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="../smallvec/struct.SmallVec.html"title="struct smallvec::SmallVec">SmallVec</a><A></code><ahref='#impl-IntoIterator-1'class='anchor'></a><aclass='srclink'href='../src/smallvec/lib.rs.html#1530-1536'title='goto source code'>[src]</a></h3><divclass='impl-items'><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.Iter.html"title="struct core::slice::Iter">Iter</a><'a, A::<aclass="type"href="../smallvec/trait.Array.html#associatedtype.Item"title="type smallvec::Array::Item">Item</a>></code></h4><divclass='docblock'><p>Which kind of iterator are we turning this into?</p>
</div><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 A::<aclass="type"href="../smallvec/trait.Array.html#associatedtype.Item"title="type smallvec::Array::Item">Item</a></code></h4><divclass='docblock'><p>The type of the elements being iterated over.</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/smallvec/lib.rs.html#1533-1535'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, A: <aclass="trait"href="../smallvec/trait.Array.html"title="trait smallvec::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="../smallvec/struct.SmallVec.html"title="struct smallvec::SmallVec">SmallVec</a><A></code><ahref='#impl-IntoIterator-2'class='anchor'></a><aclass='srclink'href='../src/smallvec/lib.rs.html#1538-1544'title='goto source code'>[src]</a></h3><divclass='impl-items'><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="https://doc.rust-lang.org/nightly/core/slice/struct.IterMut.html"title="struct core::slice::IterMut">IterMut</a><'a, A::<aclass="type"href="../smallvec/trait.Array.html#associatedtype.Item"title="type smallvec::Array::Item">Item</a>></code></h4><divclass='docblock'><p>Which kind of iterator are we turning this into?</p>
</div><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 mut A::<aclass="type"href="../smallvec/trait.Array.html#associatedtype.Item"title="type smallvec::Array::Item">Item</a></code></h4><divclass='docblock'><p>The type of the elements being iterated over.</p>
</div><h4id='method.into_iter-2'class="method hidden"><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) -> 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/smallvec/lib.rs.html#1541-1543'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-DerefMut'class='impl'><codeclass='in-band'>impl<A: <aclass="trait"href="../smallvec/trait.Array.html"title="trait smallvec::Array">Array</a>><aclass="trait"href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.DerefMut.html"title="trait core::ops::deref::DerefMut">DerefMut</a> for <aclass="struct"href="../smallvec/struct.SmallVec.html"title="struct smallvec::SmallVec">SmallVec</a><A></code><ahref='#impl-DerefMut'class='anchor'></a><aclass='srclink'href='../src/smallvec/lib.rs.html#1144-1152'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='method.deref_mut'class="method hidden"><codeid='deref_mut.v'>fn <ahref='https://doc.rust-lang.org/nightly/core/ops/deref/trait.DerefMut.html#tymethod.deref_mut'class='fnname'>deref_mut</a>(&mut self) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&mut [</a>A::<aclass="type"href="../smallvec/trait.Array.html#associatedtype.Item"title="type smallvec::Array::Item">Item</a><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a></code><aclass='srclink'href='../src/smallvec/lib.rs.html#1146-1151'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Mutably dereferences the value.</p>
</div></div><h3id='impl-Hash'class='impl'><codeclass='in-band'>impl<A: <aclass="trait"href="../smallvec/trait.Array.html"title="trait smallvec::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="../smallvec/struct.SmallVec.html"title="struct smallvec::SmallVec">SmallVec</a><A><spanclass="where fmt-newline">where<br> A::<aclass="type"href="../smallvec/trait.Array.html#associatedtype.Item"title="type smallvec::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/smallvec/lib.rs.html#1447-1451'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: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>H)</code><aclass='srclink'href='../src/smallvec/lib.rs.html#1448-1450'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: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&[Self]</a>, state: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>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-Index%3Cusize%3E'class='impl'><codeclass='in-band'>impl<A: <aclass="trait"href="../smallvec/trait.Array.html"title="trait smallvec::Array">Array</a>><aclass="trait"href="https://doc.rust-lang.org/nightly/core/ops/index/trait.Index.html"title="trait core::ops::index::Index">Index</a><<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>> for <aclass="struct"href="../smallvec/struct.SmallVec.html"title="struct smallvec::SmallVec">SmallVec</a><A></code><ahref='#impl-Index%3Cusize%3E'class='anchor'></a><aclass='srclink'href='../src/smallvec/lib.rs.html#1302-1308'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='associatedtype.Output'class="type"><codeid='Output.t'>type <ahref='https://doc.rust-lang.org/nightly/core/ops/index/trait.Index.html#associatedtype.Output'class="type">Output</a> = A::<aclass="type"href="../smallvec/trait.Array.html#associatedtype.Item"title="type smallvec::Array::Item">Item</a></code></h4><divclass='docblock'><p>The returned type after indexing.</p>
</div></div><h3id='impl-Index%3CRange%3Cusize%3E%3E'class='impl'><codeclass='in-band'>impl<A: <aclass="trait"href="../smallvec/trait.Array.html"title="trait smallvec::Array">Array</a>><aclass="trait"href="https://doc.rust-lang.org/nightly/core/ops/index/trait.Index.html"title="trait core::ops::index::Index">Index</a><<aclass="struct"href="https://doc.rust-lang.org/nightly/core/ops/range/struct.Range.html"title="struct core::ops::range::Range">Range</a><<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>>> for <aclass="struct"href="../smallvec/struct.SmallVec.html"title="struct smallvec::SmallVec">SmallVec</a><A></code><ahref='#impl-Index%3CRange%3Cusize%3E%3E'class='anchor'></a><aclass='srclink'href='../src/smallvec/lib.rs.html#1302-1308'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='associatedtype.Output-1'class="type"><codeid='Output.t-1'>type <ahref='https://doc.rust-lang.org/nightly/core/ops/index/trait.Index.html#associatedtype.Output'class="type">Output</a> = <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">[</a>A::<aclass="type"href="../smallvec/trait.Array.html#associatedtype.Item"title="type smallvec::Array::Item">Item</a><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a></code></h4><divclass='docblock'><p>The returned type after indexing.</p>
</div></div><h3id='impl-Index%3CRangeFrom%3Cusize%3E%3E'class='impl'><codeclass='in-band'>impl<A: <aclass="trait"href="../smallvec/trait.Array.html"title="trait smallvec::Array">Array</a>><aclass="trait"href="https://doc.rust-lang.org/nightly/core/ops/index/trait.Index.html"title="trait core::ops::index::Index">Index</a><<aclass="struct"href="https://doc.rust-lang.org/nightly/core/ops/range/struct.RangeFrom.html"title="struct core::ops::range::RangeFrom">RangeFrom</a><<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>>> for <aclass="struct"href="../smallvec/struct.SmallVec.html"title="struct smallvec::SmallVec">SmallVec</a><A></code><ahref='#impl-Index%3CRangeFrom%3Cusize%3E%3E'class='anchor'></a><aclass='srclink'href='../src/smallvec/lib.rs.html#1302-1308'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='associatedtype.Output-2'class="type"><codeid='Output.t-2'>type <ahref='https://doc.rust-lang.org/nightly/core/ops/index/trait.Index.html#associatedtype.Output'class="type">Output</a> = <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">[</a>A::<aclass="type"href="../smallvec/trait.Array.html#associatedtype.Item"title="type smallvec::Array::Item">Item</a><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a></code></h4><divclass='docblock'><p>The returned type after indexing.</p>
</div></div><h3id='impl-Index%3CRangeTo%3Cusize%3E%3E'class='impl'><codeclass='in-band'>impl<A: <aclass="trait"href="../smallvec/trait.Array.html"title="trait smallvec::Array">Array</a>><aclass="trait"href="https://doc.rust-lang.org/nightly/core/ops/index/trait.Index.html"title="trait core::ops::index::Index">Index</a><<aclass="struct"href="https://doc.rust-lang.org/nightly/core/ops/range/struct.RangeTo.html"title="struct core::ops::range::RangeTo">RangeTo</a><<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>>> for <aclass="struct"href="../smallvec/struct.SmallVec.html"title="struct smallvec::SmallVec">SmallVec</a><A></code><ahref='#impl-Index%3CRangeTo%3Cusize%3E%3E'class='anchor'></a><aclass='srclink'href='../src/smallvec/lib.rs.html#1302-1308'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='associatedtype.Output-3'class="type"><codeid='Output.t-3'>type <ahref='https://doc.rust-lang.org/nightly/core/ops/index/trait.Index.html#associatedtype.Output'class="type">Output</a> = <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">[</a>A::<aclass="type"href="../smallvec/trait.Array.html#associatedtype.Item"title="type smallvec::Array::Item">Item</a><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a></code></h4><divclass='docblock'><p>The returned type after indexing.</p>
</div></div><h3id='impl-Index%3CRangeFull%3E'class='impl'><codeclass='in-band'>impl<A: <aclass="trait"href="../smallvec/trait.Array.html"title="trait smallvec::Array">Array</a>><aclass="trait"href="https://doc.rust-lang.org/nightly/core/ops/index/trait.Index.html"title="trait core::ops::index::Index">Index</a><<aclass="struct"href="https://doc.rust-lang.org/nightly/core/ops/range/struct.RangeFull.html"title="struct core::ops::range::RangeFull">RangeFull</a>> for <aclass="struct"href="../smallvec/struct.SmallVec.html"title="struct smallvec::SmallVec">SmallVec</a><A></code><ahref='#impl-Index%3CRangeFull%3E'class='anchor'></a><aclass='srclink'href='../src/smallvec/lib.rs.html#1302-1308'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='associatedtype.Output-4'class="type"><codeid='Output.t-4'>type <ahref='https://doc.rust-lang.org/nightly/core/ops/index/trait.Index.html#associatedtype.Output'class="type">Output</a> = <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">[</a>A::<aclass="type"href="../smallvec/trait.Array.html#associatedtype.Item"title="type smallvec::Array::Item">Item</a><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a></code></h4><divclass='docblock'><p>The returned type after indexing.</p>
</div></div><h3id='impl-FromIterator%3C%3CA%20as%20Array%3E%3A%3AItem%3E'class='impl'><codeclass='in-band'>impl<A: <aclass="trait"href="../smallvec/trait.Array.html"title="trait smallvec::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="../smallvec/trait.Array.html"title="trait smallvec::Array">Array</a>>::<aclass="type"href="../smallvec/trait.Array.html#associatedtype.Item"title="type smallvec::Array::Item">Item</a>> for <aclass="struct"href="../smallvec/struct.SmallVec.html"title="struct smallvec::SmallVec">SmallVec</a><A></code><ahref='#impl-FromIterator%3C%3CA%20as%20Array%3E%3A%3AItem%3E'class='anchor'></a><aclass='srclink'href='../src/smallvec/lib.rs.html#1339-1345'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='method.from_iter'class="method hidden"><divclass="important-traits"><divclass='tooltip'>ⓘ<spanclass='tooltiptext'>Important traits for <aclass="struct"href="../smallvec/struct.SmallVec.html"title="struct smallvec::SmallVec">SmallVec</a><A></span></div><divclass="content hidden"><h3class="important">Important traits for <aclass="struct"href="../smallvec/struct.SmallVec.html"title="struct smallvec::SmallVec">SmallVec</a><A></h3><codeclass="content"><spanclass="where fmt-newline">impl<A: <aclass="trait"href="../smallvec/trait.Array.html"title="trait smallvec::Array">Array</a><Item = <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>>><aclass="trait"href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html"title="trait std::io::Write">Write</a> for <aclass="struct"href="../smallvec/struct.SmallVec.html"title="struct smallvec::SmallVec">SmallVec</a><A></span></code></div></div><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><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><Item = A::<aclass="type"href="../smallvec/trait.Array.html#associatedtype.Item"title="type smallvec::Array::Item">Item</a>>>(iterable: I) -><aclass="struct"href="../smallvec/struct.SmallVec.html"title="struct smallvec::SmallVec">SmallVec</a><A></code><aclass='srclink'href='../src/smallvec/lib.rs.html#1340-1344'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-BorrowMut%3C%5B%3CA%20as%20Array%3E%3A%3AItem%5D%3E'class='impl'><codeclass='in-band'>impl<A: <aclass="trait"href="../smallvec/trait.Array.html"title="trait smallvec::Array">Array</a>><aclass="trait"href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html"title="trait core::borrow::BorrowMut">BorrowMut</a><<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">[</a><A as <aclass="trait"href="../smallvec/trait.Array.html"title="trait smallvec::Array">Array</a>>::<aclass="type"href="../smallvec/trait.Array.html#associatedtype.Item"title="type smallvec::Array::Item">Item</a><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>> for <aclass="struct"href="../smallvec/struct.SmallVec.html"title="struct smallvec::SmallVec">SmallVec</a><A></code><ahref='#impl-BorrowMut%3C%5B%3CA%20as%20Array%3E%3A%3AItem%5D%3E'class='anchor'></a><aclass='srclink'href='../src/smallvec/lib.rs.html#1175-1180'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='method.borrow_mut'class="method hidden"><codeid='borrow_mut.v'>fn <ahref='https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut'class='fnname'>borrow_mut</a>(&mut self) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&mut [</a>A::<aclass="type"href="../smallvec/trait.Array.html#associatedtype.Item"title="type smallvec::Array::Item">Item</a><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a></code><aclass='srclink'href='../src/smallvec/lib.rs.html#1177-1179'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-Borrow%3C%5B%3CA%20as%20Array%3E%3A%3AItem%5D%3E'class='impl'><codeclass='in-band'>impl<A: <aclass="trait"href="../smallvec/trait.Array.html"title="trait smallvec::Array">Array</a>><aclass="trait"href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html"title="trait core::borrow::Borrow">Borrow</a><<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">[</a><A as <aclass="trait"href="../smallvec/trait.Array.html"title="trait smallvec::Array">Array</a>>::<aclass="type"href="../smallvec/trait.Array.html#associatedtype.Item"title="type smallvec::Array::Item">Item</a><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>> for <aclass="struct"href="../smallvec/struct.SmallVec.html"title="struct smallvec::SmallVec">SmallVec</a><A></code><ahref='#impl-Borrow%3C%5B%3CA%20as%20Array%3E%3A%3AItem%5D%3E'class='anchor'></a><aclass='srclink'href='../src/smallvec/lib.rs.html#1168-1173'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='method.borrow'class="method hidden"><codeid='borrow.v'>fn <ahref='https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow'class='fnname'>borrow</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&[</a>A::<aclass="type"href="../smallvec/trait.Array.html#associatedtype.Item"title="type smallvec::Array::Item">Item</a><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a></code><aclass='srclink'href='../src/smallvec/lib.rs.html#1170-1172'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-Write'class='impl'><codeclass='in-band'>impl<A: <aclass="trait"href="../smallvec/trait.Array.html"title="trait smallvec::Array">Array</a><Item = <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>>><aclass="trait"href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html"title="trait std::io::Write">Write</a> for <aclass="struct"href="../smallvec/struct.SmallVec.html"title="struct smallvec::SmallVec">SmallVec</a><A></code><ahref='#impl-Write'class='anchor'></a><aclass='srclink'href='../src/smallvec/lib.rs.html#1183-1200'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='method.write'class="method hidden"><codeid='write.v'>fn <ahref='https://doc.rust-lang.org/nightly/std/io/trait.Write.html#tymethod.write'class='fnname'>write</a>(&mut self, buf: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&[</a><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>) -><aclass="type"href="https://doc.rust-lang.org/nightly/std/io/error/type.Result.html"title="type std::io::error::Result">Result</a><<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>></code><aclass='srclink'href='../src/smallvec/lib.rs.html#1185-1188'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Write a buffer into this writer, returning how many bytes were written. <ahref="https://doc.rust-lang.org/nightly/std/io/trait.Write.html#tymethod.write">Read more</a></p>
</div><h4id='method.write_all'class="method hidden"><codeid='write_all.v'>fn <ahref='https://doc.rust-lang.org/nightly/std/io/trait.Write.html#method.write_all'class='fnname'>write_all</a>(&mut self, buf: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&[</a><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>) -><aclass="type"href="https://doc.rust-lang.org/nightly/std/io/error/type.Result.html"title="type std::io::error::Result">Result</a><<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></code><aclass='srclink'href='../src/smallvec/lib.rs.html#1191-1194'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Attempts to write an entire buffer into this writer. <ahref="https://doc.rust-lang.org/nightly/std/io/trait.Write.html#method.write_all">Read more</a></p>
</div><h4id='method.flush'class="method hidden"><codeid='flush.v'>fn <ahref='https://doc.rust-lang.org/nightly/std/io/trait.Write.html#tymethod.flush'class='fnname'>flush</a>(&mut self) -><aclass="type"href="https://doc.rust-lang.org/nightly/std/io/error/type.Result.html"title="type std::io::error::Result">Result</a><<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></code><aclass='srclink'href='../src/smallvec/lib.rs.html#1197-1199'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Flush this output stream, ensuring that all intermediately buffered contents reach their destination. <ahref="https://doc.rust-lang.org/nightly/std/io/trait.Write.html#tymethod.flush">Read more</a></p>
</div><h4id='method.write_vectored'class="method hidden"><codeid='write_vectored.v'>fn <ahref='https://doc.rust-lang.org/nightly/std/io/trait.Write.html#method.write_vectored'class='fnname'>write_vectored</a>(&mut self, bufs: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&[</a><aclass="struct"href="https://doc.rust-lang.org/nightly/std/io/struct.IoSlice.html"title="struct std::io::IoSlice">IoSlice</a><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>, <aclass="struct"href="https://doc.rust-lang.org/nightly/std/io/error/struct.Error.html"title="struct std::io::error::Error">Error</a>></code><spanclass='since'title='Stable since Rust version 1.36.0'>1.36.0</span><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/std/io/mod.rs.html#1270-1272'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Like <code>write</code>, except that it writes from a slice of buffers. <ahref="https://doc.rust-lang.org/nightly/std/io/trait.Write.html#method.write_vectored">Read more</a></p>
</div><h4id='method.write_fmt'class="method hidden"><codeid='write_fmt.v'>fn <ahref='https://doc.rust-lang.org/nightly/std/io/trait.Write.html#method.write_fmt'class='fnname'>write_fmt</a>(&mut self, fmt: <aclass="struct"href="https://doc.rust-lang.org/nightly/core/fmt/struct.Arguments.html"title="struct core::fmt::Arguments">Arguments</a>) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <aclass="struct"href="https://doc.rust-lang.org/nightly/std/io/error/struct.Error.html"title="struct std::io::error::Error">Error</a>></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/std/io/mod.rs.html#1383-1415'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Writes a formatted string into this writer, returning any error encountered. <ahref="https://doc.rust-lang.org/nightly/std/io/trait.Write.html#method.write_fmt">Read more</a></p>
</div><h4id='method.by_ref'class="method hidden"><codeid='by_ref.v'>fn <ahref='https://doc.rust-lang.org/nightly/std/io/trait.Write.html#method.by_ref'class='fnname'>by_ref</a>(&mut self) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>Self</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/std/io/mod.rs.html#1439'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Creates a "by reference" adaptor for this instance of <code>Write</code>. <ahref="https://doc.rust-lang.org/nightly/std/io/trait.Write.html#method.by_ref">Read more</a></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-ToOwned'class='impl'><codeclass='in-band'>impl<T><aclass="trait"href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html"title="trait alloc::borrow::ToOwned">ToOwned</a> for T <spanclass="where fmt-newline">where<br> T: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html"title="trait core::clone::Clone">Clone</a>, </span></code><ahref='#impl-ToOwned'class='anchor'></a><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#81-92'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='associatedtype.Owned'class="type"><codeid='Owned.t'>type <ahref='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#associatedtype.Owned'class="type">Owned</a> = T</code></h4><divclass='docblock'><p>The resulting type after obtaining ownership.</p>
</div><h4id='method.to_owned'class="method hidden"><codeid='to_owned.v'>fn <ahref='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned'class='fnname'>to_owned</a>(&self) -> T</code><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#85-87'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Creates owned data from borrowed data, usually by cloning. <ahref="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></p>
</div><h4id='method.clone_into'class="method hidden"><codeid='clone_into.v'>fn <ahref='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into'class='fnname'>clone_into</a>(&self, target: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T)</code><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#89-91'title='goto source code'>[src]</a></h4><divclass='stability hidden'><divclass='stab unstable'><details><summary><spanclass='emoji'>🔬</span> This is a nightly-only experimental API. (<code>toowned_clone_into</code>)</summary><p>recently added</p>
</details></div></div><divclass='docblock hidden'><p>Uses borrowed data to replace owned data, usually by cloning. <ahref="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into">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-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-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) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>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-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) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>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-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="smallvec";</script><scriptsrc="../aliases.js"></script><scriptsrc="../main.js"></script><scriptdefersrc="../search-index.js"></script></body></html>