Files
rapr-rs/docs/hashbrown/raw/struct.RawTable.html
T
2021-03-26 19:20:48 +00:00

90 lines
51 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `RawTable` struct in crate `hashbrown`."><meta name="keywords" content="rust, rustlang, rust-lang, RawTable"><title>hashbrown::raw::RawTable - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled ><script id="default-settings"></script><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../../favicon.svg">
<link rel="alternate icon" type="image/png" href="../../favicon-16x16.png">
<link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc struct"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../../hashbrown/index.html'><div class='logo-container rust-logo'><img src='../../rust-logo.png' alt='logo'></div></a><p class="location">Struct RawTable</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#implementations">Methods</a><div class="sidebar-links"><a href="#method.bucket">bucket</a><a href="#method.bucket_index">bucket_index</a><a href="#method.buckets">buckets</a><a href="#method.capacity">capacity</a><a href="#method.clear">clear</a><a href="#method.clear_no_drop">clear_no_drop</a><a href="#method.clone_from_with_hasher">clone_from_with_hasher</a><a href="#method.data_end">data_end</a><a href="#method.drain">drain</a><a href="#method.drain_iter_from">drain_iter_from</a><a href="#method.erase">erase</a><a href="#method.erase_entry">erase_entry</a><a href="#method.erase_no_drop">erase_no_drop</a><a href="#method.find">find</a><a href="#method.get">get</a><a href="#method.get_mut">get_mut</a><a href="#method.insert">insert</a><a href="#method.insert_entry">insert_entry</a><a href="#method.insert_no_grow">insert_no_grow</a><a href="#method.into_iter_from">into_iter_from</a><a href="#method.iter">iter</a><a href="#method.iter_hash">iter_hash</a><a href="#method.len">len</a><a href="#method.new">new</a><a href="#method.remove">remove</a><a href="#method.remove_entry">remove_entry</a><a href="#method.replace_bucket_with">replace_bucket_with</a><a href="#method.reserve">reserve</a><a href="#method.shrink_to">shrink_to</a><a href="#method.try_reserve">try_reserve</a><a href="#method.try_with_capacity">try_with_capacity</a><a href="#method.with_capacity">with_capacity</a></div><a class="sidebar-title" href="#trait-implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Clone">Clone</a><a href="#impl-Drop">Drop</a><a href="#impl-IntoIterator">IntoIterator</a><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-Unpin">Unpin</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow&lt;T&gt;</a><a href="#impl-BorrowMut%3CT%3E">BorrowMut&lt;T&gt;</a><a href="#impl-From%3CT%3E">From&lt;T&gt;</a><a href="#impl-Into%3CU%3E">Into&lt;U&gt;</a><a href="#impl-ToOwned">ToOwned</a><a href="#impl-TryFrom%3CU%3E">TryFrom&lt;U&gt;</a><a href="#impl-TryInto%3CU%3E">TryInto&lt;U&gt;</a></div></div><p class="location"><a href="../index.html">hashbrown</a>::<wbr><a href="index.html">raw</a></p><div id="sidebar-vars" data-name="RawTable" data-ty="struct" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" class="help-button">?</button>
<a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Struct <a href="../index.html">hashbrown</a>::<wbr><a href="index.html">raw</a>::<wbr><a class="struct" href="">RawTable</a></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span><a class="srclink" href="../../src/hashbrown/raw/mod.rs.html#359-376" title="goto source code">[src]</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class="rust struct">pub struct RawTable&lt;T&gt; { /* fields omitted */ }</pre></div><div class="docblock"><p>A raw hash table with an unsafe API.</p>
</div><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><h3 id="impl" class="impl"><code class="in-band">impl&lt;T&gt; <a class="struct" href="../../hashbrown/raw/struct.RawTable.html" title="struct hashbrown::raw::RawTable">RawTable</a>&lt;T&gt;</code><a href="#impl" class="anchor"></a><a class="srclink" href="../../src/hashbrown/raw/mod.rs.html#378-1180" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.new" class="method"><code>pub const fn <a href="#method.new" class="fnname">new</a>() -&gt; Self</code><a class="srclink" href="../../src/hashbrown/raw/mod.rs.html#385-394" title="goto source code">[src]</a></h4><div class="docblock"><p>Creates a new empty hash table without allocating any memory.</p>
<p>In effect this returns a table with exactly 1 bucket. However we can
leave the data pointer dangling since that bucket is never written to
due to our load factor forcing us to always have at least 1 free bucket.</p>
</div><h4 id="method.try_with_capacity" class="method"><code>pub fn <a href="#method.try_with_capacity" class="fnname">try_with_capacity</a>(capacity: usize) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self, <a class="enum" href="../../hashbrown/enum.TryReserveError.html" title="enum hashbrown::TryReserveError">TryReserveError</a>&gt;</code><a class="srclink" href="../../src/hashbrown/raw/mod.rs.html#451-453" title="goto source code">[src]</a></h4><div class="docblock"><p>Attempts to allocate a new hash table with at least enough capacity
for inserting the given number of elements without reallocating.</p>
</div><h4 id="method.with_capacity" class="method"><code>pub fn <a href="#method.with_capacity" class="fnname">with_capacity</a>(capacity: usize) -&gt; Self</code><a class="srclink" href="../../src/hashbrown/raw/mod.rs.html#457-463" title="goto source code">[src]</a></h4><div class="docblock"><p>Allocates a new hash table with at least enough capacity for inserting
the given number of elements without reallocating.</p>
</div><h4 id="method.data_end" class="method"><code>pub unsafe fn <a href="#method.data_end" class="fnname">data_end</a>(&amp;self) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/ptr/non_null/struct.NonNull.html" title="struct core::ptr::non_null::NonNull">NonNull</a>&lt;T&gt;</code><a class="srclink" href="../../src/hashbrown/raw/mod.rs.html#478-480" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns pointer to one past last element of data table.</p>
</div><h4 id="method.bucket_index" class="method"><code>pub unsafe fn <a href="#method.bucket_index" class="fnname">bucket_index</a>(&amp;self, bucket: &amp;<a class="struct" href="../../hashbrown/raw/struct.Bucket.html" title="struct hashbrown::raw::Bucket">Bucket</a>&lt;T&gt;) -&gt; usize</code><a class="srclink" href="../../src/hashbrown/raw/mod.rs.html#491-493" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns the index of a bucket from a <code>Bucket</code>.</p>
</div><h4 id="method.bucket" class="method"><code>pub unsafe fn <a href="#method.bucket" class="fnname">bucket</a>(&amp;self, index: usize) -&gt; <a class="struct" href="../../hashbrown/raw/struct.Bucket.html" title="struct hashbrown::raw::Bucket">Bucket</a>&lt;T&gt;</code><a class="srclink" href="../../src/hashbrown/raw/mod.rs.html#504-508" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns a pointer to an element in the table.</p>
</div><h4 id="method.erase_no_drop" class="method"><code>pub unsafe fn <a href="#method.erase_no_drop" class="fnname">erase_no_drop</a>(&amp;mut self, item: &amp;<a class="struct" href="../../hashbrown/raw/struct.Bucket.html" title="struct hashbrown::raw::Bucket">Bucket</a>&lt;T&gt;)</code><a class="srclink" href="../../src/hashbrown/raw/mod.rs.html#513-536" title="goto source code">[src]</a></h4><div class="item-info"><div class="stab deprecated"><span class="emoji">👎</span> Deprecated since 0.8.1: <p>use erase or remove instead</p>
</div></div><div class="docblock"><p>Erases an element from the table without dropping it.</p>
</div><h4 id="method.erase" class="method"><code>pub unsafe fn <a href="#method.erase" class="fnname">erase</a>(&amp;mut self, item: <a class="struct" href="../../hashbrown/raw/struct.Bucket.html" title="struct hashbrown::raw::Bucket">Bucket</a>&lt;T&gt;)</code><a class="srclink" href="../../src/hashbrown/raw/mod.rs.html#542-546" title="goto source code">[src]</a></h4><div class="docblock"><p>Erases an element from the table, dropping it in place.</p>
</div><h4 id="method.erase_entry" class="method"><code>pub fn <a href="#method.erase_entry" class="fnname">erase_entry</a>(&amp;mut self, hash: u64, eq: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(&amp;T) -&gt; bool) -&gt; bool</code><a class="srclink" href="../../src/hashbrown/raw/mod.rs.html#552-560" title="goto source code">[src]</a></h4><div class="docblock"><p>Finds and erases an element from the table, dropping it in place.
Returns true if an element was found.</p>
</div><h4 id="method.remove" class="method"><code>pub unsafe fn <a href="#method.remove" class="fnname">remove</a>(&amp;mut self, item: <a class="struct" href="../../hashbrown/raw/struct.Bucket.html" title="struct hashbrown::raw::Bucket">Bucket</a>&lt;T&gt;) -&gt; T</code><a class="srclink" href="../../src/hashbrown/raw/mod.rs.html#566-569" title="goto source code">[src]</a></h4><div class="docblock"><p>Removes an element from the table, returning it.</p>
</div><h4 id="method.remove_entry" class="method"><code>pub fn <a href="#method.remove_entry" class="fnname">remove_entry</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self, <br>&nbsp;&nbsp;&nbsp;&nbsp;hash: u64, <br>&nbsp;&nbsp;&nbsp;&nbsp;eq: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(&amp;T) -&gt; bool<br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;T&gt;</code><a class="srclink" href="../../src/hashbrown/raw/mod.rs.html#573-579" title="goto source code">[src]</a></h4><div class="docblock"><p>Finds and removes an element from the table, returning it.</p>
</div><h4 id="method.clear_no_drop" class="method"><code>pub fn <a href="#method.clear_no_drop" class="fnname">clear_no_drop</a>(&amp;mut self)</code><a class="srclink" href="../../src/hashbrown/raw/mod.rs.html#663-671" title="goto source code">[src]</a></h4><div class="docblock"><p>Marks all table buckets as empty without dropping their contents.</p>
</div><h4 id="method.clear" class="method"><code>pub fn <a href="#method.clear" class="fnname">clear</a>(&amp;mut self)</code><a class="srclink" href="../../src/hashbrown/raw/mod.rs.html#675-686" title="goto source code">[src]</a></h4><div class="docblock"><p>Removes all elements from the table without freeing the backing memory.</p>
</div><h4 id="method.shrink_to" class="method"><code>pub fn <a href="#method.shrink_to" class="fnname">shrink_to</a>(&amp;mut self, min_size: usize, hasher: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(&amp;T) -&gt; u64)</code><a class="srclink" href="../../src/hashbrown/raw/mod.rs.html#690-723" title="goto source code">[src]</a></h4><div class="docblock"><p>Shrinks the table to fit <code>max(self.len(), min_size)</code> elements.</p>
</div><h4 id="method.reserve" class="method"><code>pub fn <a href="#method.reserve" class="fnname">reserve</a>(&amp;mut self, additional: usize, hasher: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(&amp;T) -&gt; u64)</code><a class="srclink" href="../../src/hashbrown/raw/mod.rs.html#728-738" title="goto source code">[src]</a></h4><div class="docblock"><p>Ensures that at least <code>additional</code> items can be inserted into the table
without reallocation.</p>
</div><h4 id="method.try_reserve" class="method"><code>pub fn <a href="#method.try_reserve" class="fnname">try_reserve</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self, <br>&nbsp;&nbsp;&nbsp;&nbsp;additional: usize, <br>&nbsp;&nbsp;&nbsp;&nbsp;hasher: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(&amp;T) -&gt; u64<br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;(), <a class="enum" href="../../hashbrown/enum.TryReserveError.html" title="enum hashbrown::TryReserveError">TryReserveError</a>&gt;</code><a class="srclink" href="../../src/hashbrown/raw/mod.rs.html#743-753" title="goto source code">[src]</a></h4><div class="docblock"><p>Tries to ensure that at least <code>additional</code> items can be inserted into
the table without reallocation.</p>
</div><h4 id="method.insert" class="method"><code>pub fn <a href="#method.insert" class="fnname">insert</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self, <br>&nbsp;&nbsp;&nbsp;&nbsp;hash: u64, <br>&nbsp;&nbsp;&nbsp;&nbsp;value: T, <br>&nbsp;&nbsp;&nbsp;&nbsp;hasher: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(&amp;T) -&gt; u64<br>) -&gt; <a class="struct" href="../../hashbrown/raw/struct.Bucket.html" title="struct hashbrown::raw::Bucket">Bucket</a>&lt;T&gt;</code><a class="srclink" href="../../src/hashbrown/raw/mod.rs.html#941-961" title="goto source code">[src]</a></h4><div class="docblock"><p>Inserts a new element into the table, and returns its raw bucket.</p>
<p>This does not check if the given element already exists in the table.</p>
</div><h4 id="method.insert_entry" class="method"><code>pub fn <a href="#method.insert_entry" class="fnname">insert_entry</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self, <br>&nbsp;&nbsp;&nbsp;&nbsp;hash: u64, <br>&nbsp;&nbsp;&nbsp;&nbsp;value: T, <br>&nbsp;&nbsp;&nbsp;&nbsp;hasher: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(&amp;T) -&gt; u64<br>) -&gt; &amp;mut T</code><a class="srclink" href="../../src/hashbrown/raw/mod.rs.html#967-969" title="goto source code">[src]</a></h4><div class="docblock"><p>Inserts a new element into the table, and returns a mutable reference to it.</p>
<p>This does not check if the given element already exists in the table.</p>
</div><h4 id="method.insert_no_grow" class="method"><code>pub fn <a href="#method.insert_no_grow" class="fnname">insert_no_grow</a>(&amp;mut self, hash: u64, value: T) -&gt; <a class="struct" href="../../hashbrown/raw/struct.Bucket.html" title="struct hashbrown::raw::Bucket">Bucket</a>&lt;T&gt;</code><a class="srclink" href="../../src/hashbrown/raw/mod.rs.html#978-993" title="goto source code">[src]</a></h4><div class="docblock"><p>Inserts a new element into the table, without growing the table.</p>
<p>There must be enough space in the table to insert the new element.</p>
<p>This does not check if the given element already exists in the table.</p>
</div><h4 id="method.replace_bucket_with" class="method"><code>pub unsafe fn <a href="#method.replace_bucket_with" class="fnname">replace_bucket_with</a>&lt;F&gt;(&amp;mut self, bucket: <a class="struct" href="../../hashbrown/raw/struct.Bucket.html" title="struct hashbrown::raw::Bucket">Bucket</a>&lt;T&gt;, f: F) -&gt; bool <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(T) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;T&gt;,&nbsp;</span></code><a class="srclink" href="../../src/hashbrown/raw/mod.rs.html#1002-1020" title="goto source code">[src]</a></h4><div class="docblock"><p>Temporary removes a bucket, applying the given function to the removed
element and optionally put back the returned value in the same bucket.</p>
<p>Returns <code>true</code> if the bucket still contains an element</p>
<p>This does not check if the given bucket is actually occupied.</p>
</div><h4 id="method.find" class="method"><code>pub fn <a href="#method.find" class="fnname">find</a>(&amp;self, hash: u64, eq: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(&amp;T) -&gt; bool) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="../../hashbrown/raw/struct.Bucket.html" title="struct hashbrown::raw::Bucket">Bucket</a>&lt;T&gt;&gt;</code><a class="srclink" href="../../src/hashbrown/raw/mod.rs.html#1024-1034" title="goto source code">[src]</a></h4><div class="docblock"><p>Searches for an element in the table.</p>
</div><h4 id="method.get" class="method"><code>pub fn <a href="#method.get" class="fnname">get</a>(&amp;self, hash: u64, eq: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(&amp;T) -&gt; bool) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;T&gt;</code><a class="srclink" href="../../src/hashbrown/raw/mod.rs.html#1038-1044" title="goto source code">[src]</a></h4><div class="docblock"><p>Gets a reference to an element in the table.</p>
</div><h4 id="method.get_mut" class="method"><code>pub fn <a href="#method.get_mut" class="fnname">get_mut</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self, <br>&nbsp;&nbsp;&nbsp;&nbsp;hash: u64, <br>&nbsp;&nbsp;&nbsp;&nbsp;eq: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(&amp;T) -&gt; bool<br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;mut T&gt;</code><a class="srclink" href="../../src/hashbrown/raw/mod.rs.html#1048-1054" title="goto source code">[src]</a></h4><div class="docblock"><p>Gets a mutable reference to an element in the table.</p>
</div><h4 id="method.capacity" class="method"><code>pub fn <a href="#method.capacity" class="fnname">capacity</a>(&amp;self) -&gt; usize</code><a class="srclink" href="../../src/hashbrown/raw/mod.rs.html#1061-1063" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns the number of elements the map can hold without reallocating.</p>
<p>This number is a lower bound; the table might be able to hold
more, but is guaranteed to be able to hold at least this many.</p>
</div><h4 id="method.len" class="method"><code>pub fn <a href="#method.len" class="fnname">len</a>(&amp;self) -&gt; usize</code><a class="srclink" href="../../src/hashbrown/raw/mod.rs.html#1067-1069" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns the number of elements in the table.</p>
</div><h4 id="method.buckets" class="method"><code>pub fn <a href="#method.buckets" class="fnname">buckets</a>(&amp;self) -&gt; usize</code><a class="srclink" href="../../src/hashbrown/raw/mod.rs.html#1073-1075" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns the number of buckets in the table.</p>
</div><h4 id="method.iter" class="method"><code>pub unsafe fn <a href="#method.iter" class="fnname">iter</a>(&amp;self) -&gt; <a class="struct" href="../../hashbrown/raw/struct.RawIter.html" title="struct hashbrown::raw::RawIter">RawIter</a>&lt;T&gt;<span class="notable-traits"><span class="notable-traits-tooltip"><div class="notable-traits-tooltiptext"><span class="docblock"><h3 class="notable">Notable traits for <a class="struct" href="../../hashbrown/raw/struct.RawIter.html" title="struct hashbrown::raw::RawIter">RawIter</a>&lt;T&gt;</h3><code class="content"><span class="where fmt-newline">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="../../hashbrown/raw/struct.RawIter.html" title="struct hashbrown::raw::RawIter">RawIter</a>&lt;T&gt;</span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="type">Item</a> = <a class="struct" href="../../hashbrown/raw/struct.Bucket.html" title="struct hashbrown::raw::Bucket">Bucket</a>&lt;T&gt;;</span></code></span></div></span></span></code><a class="srclink" href="../../src/hashbrown/raw/mod.rs.html#1095-1101" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns an iterator over every element in the table. It is up to
the caller to ensure that the <code>RawTable</code> outlives the <code>RawIter</code>.
Because we cannot make the <code>next</code> method unsafe on the <code>RawIter</code>
struct, we have to make the <code>iter</code> method unsafe.</p>
</div><h4 id="method.iter_hash" class="method"><code>pub unsafe fn <a href="#method.iter_hash" class="fnname">iter_hash</a>(&amp;self, hash: u64) -&gt; <a class="struct" href="../../hashbrown/raw/struct.RawIterHash.html" title="struct hashbrown::raw::RawIterHash">RawIterHash</a>&lt;'_, T&gt;<span class="notable-traits"><span class="notable-traits-tooltip"><div class="notable-traits-tooltiptext"><span class="docblock"><h3 class="notable">Notable traits for <a class="struct" href="../../hashbrown/raw/struct.RawIterHash.html" title="struct hashbrown::raw::RawIterHash">RawIterHash</a>&lt;'a, T&gt;</h3><code class="content"><span class="where fmt-newline">impl&lt;'a, T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="../../hashbrown/raw/struct.RawIterHash.html" title="struct hashbrown::raw::RawIterHash">RawIterHash</a>&lt;'a, T&gt;</span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="type">Item</a> = <a class="struct" href="../../hashbrown/raw/struct.Bucket.html" title="struct hashbrown::raw::Bucket">Bucket</a>&lt;T&gt;;</span></code></span></div></span></span></code><a class="srclink" href="../../src/hashbrown/raw/mod.rs.html#1111-1113" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns an iterator over occupied buckets that could match a given hash.</p>
<p>In rare cases, the iterator may return a bucket with a different hash.</p>
<p>It is up to the caller to ensure that the <code>RawTable</code> outlives the
<code>RawIterHash</code>. Because we cannot make the <code>next</code> method unsafe on the
<code>RawIterHash</code> struct, we have to make the <code>iter_hash</code> method unsafe.</p>
</div><h4 id="method.drain" class="method"><code>pub fn <a href="#method.drain" class="fnname">drain</a>(&amp;mut self) -&gt; <a class="struct" href="../../hashbrown/raw/struct.RawDrain.html" title="struct hashbrown::raw::RawDrain">RawDrain</a>&lt;'_, T&gt;<span class="notable-traits"><span class="notable-traits-tooltip"><div class="notable-traits-tooltiptext"><span class="docblock"><h3 class="notable">Notable traits for <a class="struct" href="../../hashbrown/raw/struct.RawDrain.html" title="struct hashbrown::raw::RawDrain">RawDrain</a>&lt;'_, T&gt;</h3><code class="content"><span class="where fmt-newline">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="../../hashbrown/raw/struct.RawDrain.html" title="struct hashbrown::raw::RawDrain">RawDrain</a>&lt;'_, T&gt;</span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="type">Item</a> = T;</span></code></span></div></span></span></code><a class="srclink" href="../../src/hashbrown/raw/mod.rs.html#1118-1123" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns an iterator which removes all elements from the table without
freeing the memory.</p>
</div><h4 id="method.drain_iter_from" class="method"><code>pub unsafe fn <a href="#method.drain_iter_from" class="fnname">drain_iter_from</a>(&amp;mut self, iter: <a class="struct" href="../../hashbrown/raw/struct.RawIter.html" title="struct hashbrown::raw::RawIter">RawIter</a>&lt;T&gt;) -&gt; <a class="struct" href="../../hashbrown/raw/struct.RawDrain.html" title="struct hashbrown::raw::RawDrain">RawDrain</a>&lt;'_, T&gt;<span class="notable-traits"><span class="notable-traits-tooltip"><div class="notable-traits-tooltiptext"><span class="docblock"><h3 class="notable">Notable traits for <a class="struct" href="../../hashbrown/raw/struct.RawDrain.html" title="struct hashbrown::raw::RawDrain">RawDrain</a>&lt;'_, T&gt;</h3><code class="content"><span class="where fmt-newline">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="../../hashbrown/raw/struct.RawDrain.html" title="struct hashbrown::raw::RawDrain">RawDrain</a>&lt;'_, T&gt;</span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="type">Item</a> = T;</span></code></span></div></span></span></code><a class="srclink" href="../../src/hashbrown/raw/mod.rs.html#1133-1141" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns an iterator which removes all elements from the table without
freeing the memory.</p>
<p>Iteration starts at the provided iterator's current location.</p>
<p>It is up to the caller to ensure that the iterator is valid for this
<code>RawTable</code> and covers all items that remain in the table.</p>
</div><h4 id="method.into_iter_from" class="method"><code>pub unsafe fn <a href="#method.into_iter_from" class="fnname">into_iter_from</a>(self, iter: <a class="struct" href="../../hashbrown/raw/struct.RawIter.html" title="struct hashbrown::raw::RawIter">RawIter</a>&lt;T&gt;) -&gt; <a class="struct" href="../../hashbrown/raw/struct.RawIntoIter.html" title="struct hashbrown::raw::RawIntoIter">RawIntoIter</a>&lt;T&gt;<span class="notable-traits"><span class="notable-traits-tooltip"><div class="notable-traits-tooltiptext"><span class="docblock"><h3 class="notable">Notable traits for <a class="struct" href="../../hashbrown/raw/struct.RawIntoIter.html" title="struct hashbrown::raw::RawIntoIter">RawIntoIter</a>&lt;T&gt;</h3><code class="content"><span class="where fmt-newline">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="../../hashbrown/raw/struct.RawIntoIter.html" title="struct hashbrown::raw::RawIntoIter">RawIntoIter</a>&lt;T&gt;</span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="type">Item</a> = T;</span></code></span></div></span></span></code><a class="srclink" href="../../src/hashbrown/raw/mod.rs.html#1149-1158" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns an iterator which consumes all elements from the table.</p>
<p>Iteration starts at the provided iterator's current location.</p>
<p>It is up to the caller to ensure that the iterator is valid for this
<code>RawTable</code> and covers all items that remain in the table.</p>
</div></div><h3 id="impl-1" class="impl"><code class="in-band">impl&lt;T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>&gt; <a class="struct" href="../../hashbrown/raw/struct.RawTable.html" title="struct hashbrown::raw::RawTable">RawTable</a>&lt;T&gt;</code><a href="#impl-1" class="anchor"></a><a class="srclink" href="../../src/hashbrown/raw/mod.rs.html#1274-1361" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.clone_from_with_hasher" class="method"><code>pub fn <a href="#method.clone_from_with_hasher" class="fnname">clone_from_with_hasher</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self, <br>&nbsp;&nbsp;&nbsp;&nbsp;source: &amp;Self, <br>&nbsp;&nbsp;&nbsp;&nbsp;hasher: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(&amp;T) -&gt; u64<br>)</code><a class="srclink" href="../../src/hashbrown/raw/mod.rs.html#1319-1360" title="goto source code">[src]</a></h4><div class="docblock"><p>Variant of <code>clone_from</code> to use when a hasher is available.</p>
</div></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><h3 id="impl-Clone" class="impl"><code class="in-band">impl&lt;T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="../../hashbrown/raw/struct.RawTable.html" title="struct hashbrown::raw::RawTable">RawTable</a>&lt;T&gt;</code><a href="#impl-Clone" class="anchor"></a><a class="srclink" href="../../src/hashbrown/raw/mod.rs.html#1185-1244" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.clone" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&amp;self) -&gt; Self</code><a class="srclink" href="../../src/hashbrown/raw/mod.rs.html#1186-1208" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
</div><h4 id="method.clone_from" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&amp;mut self, source: &amp;Self)</code><a class="srclink" href="../../src/hashbrown/raw/mod.rs.html#1210-1243" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
</div></div><h3 id="impl-Drop" class="impl"><code class="in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/drop/trait.Drop.html" title="trait core::ops::drop::Drop">Drop</a> for <a class="struct" href="../../hashbrown/raw/struct.RawTable.html" title="struct hashbrown::raw::RawTable">RawTable</a>&lt;T&gt;</code><a href="#impl-Drop" class="anchor"></a><a class="srclink" href="../../src/hashbrown/raw/mod.rs.html#1380-1394" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.drop" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/ops/drop/trait.Drop.html#tymethod.drop" class="fnname">drop</a>(&amp;mut self)</code><a class="srclink" href="../../src/hashbrown/raw/mod.rs.html#1382-1393" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Executes the destructor for this type. <a href="https://doc.rust-lang.org/nightly/core/ops/drop/trait.Drop.html#tymethod.drop">Read more</a></p>
</div></div><h3 id="impl-IntoIterator" class="impl"><code class="in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a> for <a class="struct" href="../../hashbrown/raw/struct.RawTable.html" title="struct hashbrown::raw::RawTable">RawTable</a>&lt;T&gt;</code><a href="#impl-IntoIterator" class="anchor"></a><a class="srclink" href="../../src/hashbrown/raw/mod.rs.html#1396-1407" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="associatedtype.Item" class="type"><code>type <a href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item" class="type">Item</a> = T</code></h4><div class='docblock'><p>The type of the elements being iterated over.</p>
</div><h4 id="associatedtype.IntoIter" class="type"><code>type <a href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter" class="type">IntoIter</a> = <a class="struct" href="../../hashbrown/raw/struct.RawIntoIter.html" title="struct hashbrown::raw::RawIntoIter">RawIntoIter</a>&lt;T&gt;</code></h4><div class='docblock'><p>Which kind of iterator are we turning this into?</p>
</div><h4 id="method.into_iter" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter" class="fnname">into_iter</a>(self) -&gt; <a class="struct" href="../../hashbrown/raw/struct.RawIntoIter.html" title="struct hashbrown::raw::RawIntoIter">RawIntoIter</a>&lt;T&gt;<span class="notable-traits"><span class="notable-traits-tooltip"><div class="notable-traits-tooltiptext"><span class="docblock"><h3 class="notable">Notable traits for <a class="struct" href="../../hashbrown/raw/struct.RawIntoIter.html" title="struct hashbrown::raw::RawIntoIter">RawIntoIter</a>&lt;T&gt;</h3><code class="content"><span class="where fmt-newline">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="../../hashbrown/raw/struct.RawIntoIter.html" title="struct hashbrown::raw::RawIntoIter">RawIntoIter</a>&lt;T&gt;</span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="type">Item</a> = T;</span></code></span></div></span></span></code><a class="srclink" href="../../src/hashbrown/raw/mod.rs.html#1401-1406" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Creates an iterator from a value. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter">Read more</a></p>
</div></div><h3 id="impl-Send" class="impl"><code class="in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="../../hashbrown/raw/struct.RawTable.html" title="struct hashbrown::raw::RawTable">RawTable</a>&lt;T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,&nbsp;</span></code><a href="#impl-Send" class="anchor"></a><a class="srclink" href="../../src/hashbrown/raw/mod.rs.html#1182" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-Sync" class="impl"><code class="in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="../../hashbrown/raw/struct.RawTable.html" title="struct hashbrown::raw::RawTable">RawTable</a>&lt;T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,&nbsp;</span></code><a href="#impl-Sync" class="anchor"></a><a class="srclink" href="../../src/hashbrown/raw/mod.rs.html#1183" title="goto source code">[src]</a></h3><div class="impl-items"></div></div><h2 id="synthetic-implementations" class="small-section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor"></a></h2><div id="synthetic-implementations-list"><h3 id="impl-Unpin" class="impl"><code class="in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="../../hashbrown/raw/struct.RawTable.html" title="struct hashbrown::raw::RawTable">RawTable</a>&lt;T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,&nbsp;</span></code><a href="#impl-Unpin" class="anchor"></a><a class="srclink" href="../../src/hashbrown/lib.rs.html#1" title="goto source code">[src]</a></h3><div class="impl-items"></div></div><h2 id="blanket-implementations" class="small-section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor"></a></h2><div id="blanket-implementations-list"><h3 id="impl-Any" class="impl"><code class="in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code><a href="#impl-Any" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#131-135" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.type_id" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&amp;self) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#132" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
</div></div><h3 id="impl-Borrow%3CT%3E" class="impl"><code class="in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;T&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code><a href="#impl-Borrow%3CT%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#207-211" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.borrow" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow" class="fnname">borrow</a>(&amp;self) -&gt; &amp;T</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#208" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
</div></div><h3 id="impl-BorrowMut%3CT%3E" class="impl"><code class="in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code><a href="#impl-BorrowMut%3CT%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#214-218" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.borrow_mut" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fnname">borrow_mut</a>(&amp;mut self) -&gt; &amp;mut T</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#215" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
</div></div><h3 id="impl-From%3CT%3E" class="impl"><code class="in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt; for T</code><a href="#impl-From%3CT%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#545-549" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.from" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(t: T) -&gt; T</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#546" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id="impl-Into%3CU%3E" class="impl"><code class="in-band">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;U&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt;,&nbsp;</span></code><a href="#impl-Into%3CU%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#534-541" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.into" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into" class="fnname">into</a>(self) -&gt; U</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#538" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id="impl-ToOwned" class="impl"><code class="in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a> for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,&nbsp;</span></code><a href="#impl-ToOwned" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#80-92" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="associatedtype.Owned" class="type"><code>type <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#associatedtype.Owned" class="type">Owned</a> = T</code></h4><div class='docblock'><p>The resulting type after obtaining ownership.</p>
</div><h4 id="method.to_owned" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned" class="fnname">to_owned</a>(&amp;self) -&gt; T</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#85" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Creates owned data from borrowed data, usually by cloning. <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></p>
</div><h4 id="method.clone_into" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into" class="fnname">clone_into</a>(&amp;self, target: &amp;mut T)</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#89" title="goto source code">[src]</a></h4><div class="item-info hidden"><div class="stab unstable"><details><summary><span class="emoji">🔬</span> This is a nightly-only experimental API. (<code>toowned_clone_into</code>)</summary><p>recently added</p>
</details></div></div><div class='docblock hidden'><p>Uses borrowed data to replace owned data, usually by cloning. <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into">Read more</a></p>
</div></div><h3 id="impl-TryFrom%3CU%3E" class="impl"><code class="in-band">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;U&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;T&gt;,&nbsp;</span></code><a href="#impl-TryFrom%3CU%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#582-591" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="associatedtype.Error" class="type"><code>type <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" class="type">Error</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
</div><h4 id="method.try_from" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from" class="fnname">try_from</a>(value: U) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;T, &lt;T as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>&gt;</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#588" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id="impl-TryInto%3CU%3E" class="impl"><code class="in-band">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a>&lt;U&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;,&nbsp;</span></code><a href="#impl-TryInto%3CU%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#568-577" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="associatedtype.Error-1" class="type"><code>type <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error" class="type">Error</a> = &lt;U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
</div><h4 id="method.try_into" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into" class="fnname">try_into</a>(self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;U, &lt;U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>&gt;</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#574" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div></div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../../" data-current-crate="hashbrown"></div>
<script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>