blob: 19cad371f600fb6240fcd792f9d61545e2684358 [file] [log] [blame]
<!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="A raw hash table with an unsafe API."><meta name="keywords" content="rust, rustlang, rust-lang, RawTable"><title>RawTable in hashbrown::raw - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" href="../../normalize.css"><link rel="stylesheet" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" href="../../ayu.css" disabled><link rel="stylesheet" href="../../dark.css" disabled><link rel="stylesheet" href="../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../storage.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../main.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.svg"></head><body class="rustdoc struct"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="sidebar-logo" href="../../hashbrown/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div></a><h2></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../hashbrown/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div></a><h2 class="location"><a href="#">RawTable</a></h2><div class="sidebar-elems"><section><h3><a href="#implementations">Methods</a></h3><ul class="block"><li><a href="#method.allocator">allocator</a></li><li><a href="#method.bucket">bucket</a></li><li><a href="#method.bucket_index">bucket_index</a></li><li><a href="#method.buckets">buckets</a></li><li><a href="#method.capacity">capacity</a></li><li><a href="#method.clear">clear</a></li><li><a href="#method.clear_no_drop">clear_no_drop</a></li><li><a href="#method.clone_from_with_hasher">clone_from_with_hasher</a></li><li><a href="#method.data_end">data_end</a></li><li><a href="#method.drain">drain</a></li><li><a href="#method.drain_iter_from">drain_iter_from</a></li><li><a href="#method.erase">erase</a></li><li><a href="#method.erase_entry">erase_entry</a></li><li><a href="#method.erase_no_drop">erase_no_drop</a></li><li><a href="#method.find">find</a></li><li><a href="#method.get">get</a></li><li><a href="#method.get_many_mut">get_many_mut</a></li><li><a href="#method.get_many_unchecked_mut">get_many_unchecked_mut</a></li><li><a href="#method.get_mut">get_mut</a></li><li><a href="#method.insert">insert</a></li><li><a href="#method.insert_entry">insert_entry</a></li><li><a href="#method.insert_no_grow">insert_no_grow</a></li><li><a href="#method.into_iter_from">into_iter_from</a></li><li><a href="#method.is_empty">is_empty</a></li><li><a href="#method.iter">iter</a></li><li><a href="#method.iter_hash">iter_hash</a></li><li><a href="#method.len">len</a></li><li><a href="#method.new">new</a></li><li><a href="#method.new_in">new_in</a></li><li><a href="#method.remove">remove</a></li><li><a href="#method.remove_entry">remove_entry</a></li><li><a href="#method.replace_bucket_with">replace_bucket_with</a></li><li><a href="#method.reserve">reserve</a></li><li><a href="#method.shrink_to">shrink_to</a></li><li><a href="#method.try_insert_no_grow">try_insert_no_grow</a></li><li><a href="#method.try_reserve">try_reserve</a></li><li><a href="#method.try_with_capacity">try_with_capacity</a></li><li><a href="#method.try_with_capacity_in">try_with_capacity_in</a></li><li><a href="#method.with_capacity">with_capacity</a></li><li><a href="#method.with_capacity_in">with_capacity_in</a></li></ul><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block"><li><a href="#impl-Clone-for-RawTable%3CT%2C%20A%3E">Clone</a></li><li><a href="#impl-Default-for-RawTable%3CT%2C%20A%3E">Default</a></li><li><a href="#impl-Drop-for-RawTable%3CT%2C%20A%3E">Drop</a></li><li><a href="#impl-IntoIterator-for-RawTable%3CT%2C%20A%3E">IntoIterator</a></li><li><a href="#impl-Send-for-RawTable%3CT%2C%20A%3E">Send</a></li><li><a href="#impl-Sync-for-RawTable%3CT%2C%20A%3E">Sync</a></li></ul><h3><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul class="block"><li><a href="#impl-RefUnwindSafe-for-RawTable%3CT%2C%20A%3E">RefUnwindSafe</a></li><li><a href="#impl-Unpin-for-RawTable%3CT%2C%20A%3E">Unpin</a></li><li><a href="#impl-UnwindSafe-for-RawTable%3CT%2C%20A%3E">UnwindSafe</a></li></ul><h3><a href="#blanket-implementations">Blanket Implementations</a></h3><ul class="block"><li><a href="#impl-Any-for-RawTable%3CT%2C%20A%3E">Any</a></li><li><a href="#impl-Borrow%3CT%3E-for-RawTable%3CT%2C%20A%3E">Borrow&lt;T&gt;</a></li><li><a href="#impl-BorrowMut%3CT%3E-for-RawTable%3CT%2C%20A%3E">BorrowMut&lt;T&gt;</a></li><li><a href="#impl-From%3CT%3E-for-RawTable%3CT%2C%20A%3E">From&lt;T&gt;</a></li><li><a href="#impl-Into%3CU%3E-for-RawTable%3CT%2C%20A%3E">Into&lt;U&gt;</a></li><li><a href="#impl-ToOwned-for-RawTable%3CT%2C%20A%3E">ToOwned</a></li><li><a href="#impl-TryFrom%3CU%3E-for-RawTable%3CT%2C%20A%3E">TryFrom&lt;U&gt;</a></li><li><a href="#impl-TryInto%3CU%3E-for-RawTable%3CT%2C%20A%3E">TryInto&lt;U&gt;</a></li></ul></section><h2><a href="index.html">In hashbrown::raw</a></h2></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../wheel.svg"></a></div></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn">Struct <a href="../index.html">hashbrown</a>::<wbr><a href="index.html">raw</a>::<wbr><a class="struct" href="#">RawTable</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="srclink" href="../../src/hashbrown/raw/mod.rs.html#361-365">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="item-decl"><pre class="rust struct"><code>pub struct RawTable&lt;T, A:&nbsp;Allocator + Clone&nbsp;=&nbsp;Global&gt; { /* private fields */ }</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A raw hash table with an unsafe API.</p>
</div></details><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><div id="implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-RawTable%3CT%2C%20Global%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/hashbrown/raw/mod.rs.html#387-413">source</a><a href="#impl-RawTable%3CT%2C%20Global%3E" class="anchor"></a><h3 class="code-header">impl&lt;T&gt; <a class="struct" href="struct.RawTable.html" title="struct hashbrown::raw::RawTable">RawTable</a>&lt;T, Global&gt;</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.new" class="method has-srclink"><a class="srclink rightside" href="../../src/hashbrown/raw/mod.rs.html#394-399">source</a><h4 class="code-header">pub const fn <a href="#method.new" class="fnname">new</a>() -&gt; Self</h4></section></summary><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></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.try_with_capacity" class="method has-srclink"><a class="srclink rightside" href="../../src/hashbrown/raw/mod.rs.html#404-406">source</a><h4 class="code-header">pub fn <a href="#method.try_with_capacity" class="fnname">try_with_capacity</a>(capacity: usize) -&gt; Result&lt;Self, <a class="enum" href="../enum.TryReserveError.html" title="enum hashbrown::TryReserveError">TryReserveError</a>&gt;</h4></section></summary><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></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.with_capacity" class="method has-srclink"><a class="srclink rightside" href="../../src/hashbrown/raw/mod.rs.html#410-412">source</a><h4 class="code-header">pub fn <a href="#method.with_capacity" class="fnname">with_capacity</a>(capacity: usize) -&gt; Self</h4></section></summary><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></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-RawTable%3CT%2C%20A%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/hashbrown/raw/mod.rs.html#415-1026">source</a><a href="#impl-RawTable%3CT%2C%20A%3E" class="anchor"></a><h3 class="code-header">impl&lt;T, A:&nbsp;Allocator + Clone&gt; <a class="struct" href="struct.RawTable.html" title="struct hashbrown::raw::RawTable">RawTable</a>&lt;T, A&gt;</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.new_in" class="method has-srclink"><a class="srclink rightside" href="../../src/hashbrown/raw/mod.rs.html#423-428">source</a><h4 class="code-header">pub fn <a href="#method.new_in" class="fnname">new_in</a>(alloc: A) -&gt; Self</h4></section></summary><div class="docblock"><p>Creates a new empty hash table without allocating any memory, using the
given allocator.</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></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.try_with_capacity_in" class="method has-srclink"><a class="srclink rightside" href="../../src/hashbrown/raw/mod.rs.html#473-475">source</a><h4 class="code-header">pub fn <a href="#method.try_with_capacity_in" class="fnname">try_with_capacity_in</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;capacity: usize,<br>&nbsp;&nbsp;&nbsp;&nbsp;alloc: A<br>) -&gt; Result&lt;Self, <a class="enum" href="../enum.TryReserveError.html" title="enum hashbrown::TryReserveError">TryReserveError</a>&gt;</h4></section></summary><div class="docblock"><p>Attempts to allocate a new hash table using the given allocator, with at least enough
capacity for inserting the given number of elements without reallocating.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.with_capacity_in" class="method has-srclink"><a class="srclink rightside" href="../../src/hashbrown/raw/mod.rs.html#479-485">source</a><h4 class="code-header">pub fn <a href="#method.with_capacity_in" class="fnname">with_capacity_in</a>(capacity: usize, alloc: A) -&gt; Self</h4></section></summary><div class="docblock"><p>Allocates a new hash table using the given allocator, with at least enough capacity for
inserting the given number of elements without reallocating.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.allocator" class="method has-srclink"><a class="srclink rightside" href="../../src/hashbrown/raw/mod.rs.html#489-491">source</a><h4 class="code-header">pub fn <a href="#method.allocator" class="fnname">allocator</a>(&amp;self) -&gt; &amp;A</h4></section></summary><div class="docblock"><p>Returns a reference to the underlying allocator.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.data_end" class="method has-srclink"><a class="srclink rightside" href="../../src/hashbrown/raw/mod.rs.html#501-503">source</a><h4 class="code-header">pub unsafe fn <a href="#method.data_end" class="fnname">data_end</a>(&amp;self) -&gt; NonNull&lt;T&gt;</h4></section></summary><div class="docblock"><p>Returns pointer to one past last element of data table.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.bucket_index" class="method has-srclink"><a class="srclink rightside" href="../../src/hashbrown/raw/mod.rs.html#514-516">source</a><h4 class="code-header">pub unsafe fn <a href="#method.bucket_index" class="fnname">bucket_index</a>(&amp;self, bucket: &amp;<a class="struct" href="struct.Bucket.html" title="struct hashbrown::raw::Bucket">Bucket</a>&lt;T&gt;) -&gt; usize</h4></section></summary><div class="docblock"><p>Returns the index of a bucket from a <code>Bucket</code>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.bucket" class="method has-srclink"><a class="srclink rightside" href="../../src/hashbrown/raw/mod.rs.html#520-524">source</a><h4 class="code-header">pub unsafe fn <a href="#method.bucket" class="fnname">bucket</a>(&amp;self, index: usize) -&gt; <a class="struct" href="struct.Bucket.html" title="struct hashbrown::raw::Bucket">Bucket</a>&lt;T&gt;</h4></section></summary><div class="docblock"><p>Returns a pointer to an element in the table.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.erase_no_drop" class="method has-srclink"><a class="srclink rightside" href="../../src/hashbrown/raw/mod.rs.html#529-532">source</a><h4 class="code-header">pub unsafe fn <a href="#method.erase_no_drop" class="fnname">erase_no_drop</a>(&amp;mut self, item: &amp;<a class="struct" href="struct.Bucket.html" title="struct hashbrown::raw::Bucket">Bucket</a>&lt;T&gt;)</h4></section><span class="item-info"><div class="stab deprecated"><span class="emoji">👎</span><span>Deprecated since 0.8.1: use erase or remove instead</span></div></span></summary><div class="docblock"><p>Erases an element from the table without dropping it.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.erase" class="method has-srclink"><a class="srclink rightside" href="../../src/hashbrown/raw/mod.rs.html#538-542">source</a><h4 class="code-header">pub unsafe fn <a href="#method.erase" class="fnname">erase</a>(&amp;mut self, item: <a class="struct" href="struct.Bucket.html" title="struct hashbrown::raw::Bucket">Bucket</a>&lt;T&gt;)</h4></section></summary><div class="docblock"><p>Erases an element from the table, dropping it in place.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.erase_entry" class="method has-srclink"><a class="srclink rightside" href="../../src/hashbrown/raw/mod.rs.html#548-558">source</a><h4 class="code-header">pub fn <a href="#method.erase_entry" class="fnname">erase_entry</a>(&amp;mut self, hash: u64, eq: impl FnMut(&amp;T) -&gt; bool) -&gt; bool</h4></section></summary><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></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.remove" class="method has-srclink"><a class="srclink rightside" href="../../src/hashbrown/raw/mod.rs.html#564-567">source</a><h4 class="code-header">pub unsafe fn <a href="#method.remove" class="fnname">remove</a>(&amp;mut self, item: <a class="struct" href="struct.Bucket.html" title="struct hashbrown::raw::Bucket">Bucket</a>&lt;T&gt;) -&gt; T</h4></section></summary><div class="docblock"><p>Removes an element from the table, returning it.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.remove_entry" class="method has-srclink"><a class="srclink rightside" href="../../src/hashbrown/raw/mod.rs.html#571-577">source</a><h4 class="code-header">pub fn <a href="#method.remove_entry" class="fnname">remove_entry</a>(&amp;mut self, hash: u64, eq: impl FnMut(&amp;T) -&gt; bool) -&gt; Option&lt;T&gt;</h4></section></summary><div class="docblock"><p>Finds and removes an element from the table, returning it.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clear_no_drop" class="method has-srclink"><a class="srclink rightside" href="../../src/hashbrown/raw/mod.rs.html#581-583">source</a><h4 class="code-header">pub fn <a href="#method.clear_no_drop" class="fnname">clear_no_drop</a>(&amp;mut self)</h4></section></summary><div class="docblock"><p>Marks all table buckets as empty without dropping their contents.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clear" class="method has-srclink"><a class="srclink rightside" href="../../src/hashbrown/raw/mod.rs.html#587-593">source</a><h4 class="code-header">pub fn <a href="#method.clear" class="fnname">clear</a>(&amp;mut self)</h4></section></summary><div class="docblock"><p>Removes all elements from the table without freeing the backing memory.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.shrink_to" class="method has-srclink"><a class="srclink rightside" href="../../src/hashbrown/raw/mod.rs.html#605-638">source</a><h4 class="code-header">pub fn <a href="#method.shrink_to" class="fnname">shrink_to</a>(&amp;mut self, min_size: usize, hasher: impl Fn(&amp;T) -&gt; u64)</h4></section></summary><div class="docblock"><p>Shrinks the table to fit <code>max(self.len(), min_size)</code> elements.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.reserve" class="method has-srclink"><a class="srclink rightside" href="../../src/hashbrown/raw/mod.rs.html#643-653">source</a><h4 class="code-header">pub fn <a href="#method.reserve" class="fnname">reserve</a>(&amp;mut self, additional: usize, hasher: impl Fn(&amp;T) -&gt; u64)</h4></section></summary><div class="docblock"><p>Ensures that at least <code>additional</code> items can be inserted into the table
without reallocation.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.try_reserve" class="method has-srclink"><a class="srclink rightside" href="../../src/hashbrown/raw/mod.rs.html#658-668">source</a><h4 class="code-header">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 Fn(&amp;T) -&gt; u64<br>) -&gt; Result&lt;(), <a class="enum" href="../enum.TryReserveError.html" title="enum hashbrown::TryReserveError">TryReserveError</a>&gt;</h4></section></summary><div class="docblock"><p>Tries to ensure that at least <code>additional</code> items can be inserted into
the table without reallocation.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.insert" class="method has-srclink"><a class="srclink rightside" href="../../src/hashbrown/raw/mod.rs.html#716-735">source</a><h4 class="code-header">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 Fn(&amp;T) -&gt; u64<br>) -&gt; <a class="struct" href="struct.Bucket.html" title="struct hashbrown::raw::Bucket">Bucket</a>&lt;T&gt;</h4></section></summary><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></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.try_insert_no_grow" class="method has-srclink"><a class="srclink rightside" href="../../src/hashbrown/raw/mod.rs.html#745-756">source</a><h4 class="code-header">pub fn <a href="#method.try_insert_no_grow" class="fnname">try_insert_no_grow</a>(&amp;mut self, hash: u64, value: T) -&gt; Result&lt;<a class="struct" href="struct.Bucket.html" title="struct hashbrown::raw::Bucket">Bucket</a>&lt;T&gt;, T&gt;</h4></section></summary><div class="docblock"><p>Attempts to insert a new element without growing the table and return its raw bucket.</p>
<p>Returns an <code>Err</code> containing the given element if inserting it would require growing the
table.</p>
<p>This does not check if the given element already exists in the table.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.insert_entry" class="method has-srclink"><a class="srclink rightside" href="../../src/hashbrown/raw/mod.rs.html#762-764">source</a><h4 class="code-header">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 Fn(&amp;T) -&gt; u64<br>) -&gt; &amp;mut T</h4></section></summary><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></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.insert_no_grow" class="method has-srclink"><a class="srclink rightside" href="../../src/hashbrown/raw/mod.rs.html#773-784">source</a><h4 class="code-header">pub unsafe 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="struct.Bucket.html" title="struct hashbrown::raw::Bucket">Bucket</a>&lt;T&gt;</h4></section></summary><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></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.replace_bucket_with" class="method has-srclink"><a class="srclink rightside" href="../../src/hashbrown/raw/mod.rs.html#793-811">source</a><h4 class="code-header">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="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: FnOnce(T) -&gt; Option&lt;T&gt;,</span></h4></section></summary><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></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.find" class="method has-srclink"><a class="srclink rightside" href="../../src/hashbrown/raw/mod.rs.html#815-825">source</a><h4 class="code-header">pub fn <a href="#method.find" class="fnname">find</a>(&amp;self, hash: u64, eq: impl FnMut(&amp;T) -&gt; bool) -&gt; Option&lt;<a class="struct" href="struct.Bucket.html" title="struct hashbrown::raw::Bucket">Bucket</a>&lt;T&gt;&gt;</h4></section></summary><div class="docblock"><p>Searches for an element in the table.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.get" class="method has-srclink"><a class="srclink rightside" href="../../src/hashbrown/raw/mod.rs.html#829-835">source</a><h4 class="code-header">pub fn <a href="#method.get" class="fnname">get</a>(&amp;self, hash: u64, eq: impl FnMut(&amp;T) -&gt; bool) -&gt; Option&lt;&amp;T&gt;</h4></section></summary><div class="docblock"><p>Gets a reference to an element in the table.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.get_mut" class="method has-srclink"><a class="srclink rightside" href="../../src/hashbrown/raw/mod.rs.html#839-845">source</a><h4 class="code-header">pub fn <a href="#method.get_mut" class="fnname">get_mut</a>(&amp;mut self, hash: u64, eq: impl FnMut(&amp;T) -&gt; bool) -&gt; Option&lt;&amp;mut T&gt;</h4></section></summary><div class="docblock"><p>Gets a mutable reference to an element in the table.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.get_many_mut" class="method has-srclink"><a class="srclink rightside" href="../../src/hashbrown/raw/mod.rs.html#856-875">source</a><h4 class="code-header">pub fn <a href="#method.get_many_mut" class="fnname">get_many_mut</a>&lt;const N:&nbsp;usize&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self,<br>&nbsp;&nbsp;&nbsp;&nbsp;hashes: [u64; N],<br>&nbsp;&nbsp;&nbsp;&nbsp;eq: impl FnMut(usize, &amp;T) -&gt; bool<br>) -&gt; Option&lt;[&amp;mut T; N]&gt;</h4></section></summary><div class="docblock"><p>Attempts to get mutable references to <code>N</code> entries in the table at once.</p>
<p>Returns an array of length <code>N</code> with the results of each query.</p>
<p>At most one mutable reference will be returned to any entry. <code>None</code> will be returned if any
of the hashes are duplicates. <code>None</code> will be returned if the hash is not found.</p>
<p>The <code>eq</code> argument should be a closure such that <code>eq(i, k)</code> returns true if <code>k</code> is equal to
the <code>i</code>th key to be looked up.</p>
</div></details><section id="method.get_many_unchecked_mut" class="method has-srclink"><a class="srclink rightside" href="../../src/hashbrown/raw/mod.rs.html#877-884">source</a><h4 class="code-header">pub unsafe fn <a href="#method.get_many_unchecked_mut" class="fnname">get_many_unchecked_mut</a>&lt;const N:&nbsp;usize&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self,<br>&nbsp;&nbsp;&nbsp;&nbsp;hashes: [u64; N],<br>&nbsp;&nbsp;&nbsp;&nbsp;eq: impl FnMut(usize, &amp;T) -&gt; bool<br>) -&gt; Option&lt;[&amp;mut T; N]&gt;</h4></section><details class="rustdoc-toggle method-toggle" open><summary><section id="method.capacity" class="method has-srclink"><a class="srclink rightside" href="../../src/hashbrown/raw/mod.rs.html#909-911">source</a><h4 class="code-header">pub fn <a href="#method.capacity" class="fnname">capacity</a>(&amp;self) -&gt; usize</h4></section></summary><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></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.len" class="method has-srclink"><a class="srclink rightside" href="../../src/hashbrown/raw/mod.rs.html#915-917">source</a><h4 class="code-header">pub fn <a href="#method.len" class="fnname">len</a>(&amp;self) -&gt; usize</h4></section></summary><div class="docblock"><p>Returns the number of elements in the table.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.is_empty" class="method has-srclink"><a class="srclink rightside" href="../../src/hashbrown/raw/mod.rs.html#921-923">source</a><h4 class="code-header">pub fn <a href="#method.is_empty" class="fnname">is_empty</a>(&amp;self) -&gt; bool</h4></section></summary><div class="docblock"><p>Returns <code>true</code> if the table contains no elements.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.buckets" class="method has-srclink"><a class="srclink rightside" href="../../src/hashbrown/raw/mod.rs.html#927-929">source</a><h4 class="code-header">pub fn <a href="#method.buckets" class="fnname">buckets</a>(&amp;self) -&gt; usize</h4></section></summary><div class="docblock"><p>Returns the number of buckets in the table.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.iter" class="method has-srclink"><a class="srclink rightside" href="../../src/hashbrown/raw/mod.rs.html#936-942">source</a><h4 class="code-header">pub unsafe fn <a href="#method.iter" class="fnname">iter</a>(&amp;self) -&gt; <a class="struct" href="struct.RawIter.html" title="struct hashbrown::raw::RawIter">RawIter</a>&lt;T&gt;<span class="notable-traits"><span class="notable-traits-tooltip"><span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.RawIter.html" title="struct hashbrown::raw::RawIter">RawIter</a>&lt;T&gt;</span><code class="content"><span class="where fmt-newline">impl&lt;T&gt; Iterator for <a class="struct" href="struct.RawIter.html" title="struct hashbrown::raw::RawIter">RawIter</a>&lt;T&gt;</span><span class="where fmt-newline"> type <a class="associatedtype">Item</a> = <a class="struct" href="struct.Bucket.html" title="struct hashbrown::raw::Bucket">Bucket</a>&lt;T&gt;;</span></code></span></span></span></span></h4></section></summary><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></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.iter_hash" class="method has-srclink"><a class="srclink rightside" href="../../src/hashbrown/raw/mod.rs.html#955-957">source</a><h4 class="code-header">pub unsafe fn <a href="#method.iter_hash" class="fnname">iter_hash</a>(&amp;self, hash: u64) -&gt; <a class="struct" href="struct.RawIterHash.html" title="struct hashbrown::raw::RawIterHash">RawIterHash</a>&lt;'_, T, A&gt;<span class="notable-traits"><span class="notable-traits-tooltip"><span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.RawIterHash.html" title="struct hashbrown::raw::RawIterHash">RawIterHash</a>&lt;'a, T, A&gt;</span><code class="content"><span class="where fmt-newline">impl&lt;'a, T, A:&nbsp;Allocator + Clone&gt; Iterator for <a class="struct" href="struct.RawIterHash.html" title="struct hashbrown::raw::RawIterHash">RawIterHash</a>&lt;'a, T, A&gt;</span><span class="where fmt-newline"> type <a class="associatedtype">Item</a> = <a class="struct" href="struct.Bucket.html" title="struct hashbrown::raw::Bucket">Bucket</a>&lt;T&gt;;</span></code></span></span></span></span></h4></section></summary><div class="docblock"><p>Returns an iterator over occupied buckets that could match a given hash.</p>
<p><code>RawTable</code> only stores 7 bits of the hash value, so this iterator may
return items that have a hash value different than the one provided. You
should always validate the returned values before using them.</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></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.drain" class="method has-srclink"><a class="srclink rightside" href="../../src/hashbrown/raw/mod.rs.html#962-967">source</a><h4 class="code-header">pub fn <a href="#method.drain" class="fnname">drain</a>(&amp;mut self) -&gt; <a class="struct" href="struct.RawDrain.html" title="struct hashbrown::raw::RawDrain">RawDrain</a>&lt;'_, T, A&gt;<span class="notable-traits"><span class="notable-traits-tooltip"><span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.RawDrain.html" title="struct hashbrown::raw::RawDrain">RawDrain</a>&lt;'_, T, A&gt;</span><code class="content"><span class="where fmt-newline">impl&lt;T, A:&nbsp;Allocator + Clone&gt; Iterator for <a class="struct" href="struct.RawDrain.html" title="struct hashbrown::raw::RawDrain">RawDrain</a>&lt;'_, T, A&gt;</span><span class="where fmt-newline"> type <a class="associatedtype">Item</a> = T;</span></code></span></span></span></span></h4></section></summary><div class="docblock"><p>Returns an iterator which removes all elements from the table without
freeing the memory.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.drain_iter_from" class="method has-srclink"><a class="srclink rightside" href="../../src/hashbrown/raw/mod.rs.html#977-985">source</a><h4 class="code-header">pub unsafe fn <a href="#method.drain_iter_from" class="fnname">drain_iter_from</a>(&amp;mut self, iter: <a class="struct" href="struct.RawIter.html" title="struct hashbrown::raw::RawIter">RawIter</a>&lt;T&gt;) -&gt; <a class="struct" href="struct.RawDrain.html" title="struct hashbrown::raw::RawDrain">RawDrain</a>&lt;'_, T, A&gt;<span class="notable-traits"><span class="notable-traits-tooltip"><span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.RawDrain.html" title="struct hashbrown::raw::RawDrain">RawDrain</a>&lt;'_, T, A&gt;</span><code class="content"><span class="where fmt-newline">impl&lt;T, A:&nbsp;Allocator + Clone&gt; Iterator for <a class="struct" href="struct.RawDrain.html" title="struct hashbrown::raw::RawDrain">RawDrain</a>&lt;'_, T, A&gt;</span><span class="where fmt-newline"> type <a class="associatedtype">Item</a> = T;</span></code></span></span></span></span></h4></section></summary><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></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.into_iter_from" class="method has-srclink"><a class="srclink rightside" href="../../src/hashbrown/raw/mod.rs.html#993-1004">source</a><h4 class="code-header">pub unsafe fn <a href="#method.into_iter_from" class="fnname">into_iter_from</a>(self, iter: <a class="struct" href="struct.RawIter.html" title="struct hashbrown::raw::RawIter">RawIter</a>&lt;T&gt;) -&gt; <a class="struct" href="struct.RawIntoIter.html" title="struct hashbrown::raw::RawIntoIter">RawIntoIter</a>&lt;T, A&gt;<span class="notable-traits"><span class="notable-traits-tooltip"><span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.RawIntoIter.html" title="struct hashbrown::raw::RawIntoIter">RawIntoIter</a>&lt;T, A&gt;</span><code class="content"><span class="where fmt-newline">impl&lt;T, A:&nbsp;Allocator + Clone&gt; Iterator for <a class="struct" href="struct.RawIntoIter.html" title="struct hashbrown::raw::RawIntoIter">RawIntoIter</a>&lt;T, A&gt;</span><span class="where fmt-newline"> type <a class="associatedtype">Item</a> = T;</span></code></span></span></span></span></h4></section></summary><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></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-RawTable%3CT%2C%20A%3E-1" class="impl has-srclink"><a class="srclink rightside" href="../../src/hashbrown/raw/mod.rs.html#1706-1791">source</a><a href="#impl-RawTable%3CT%2C%20A%3E-1" class="anchor"></a><h3 class="code-header">impl&lt;T:&nbsp;Clone, A:&nbsp;Allocator + Clone&gt; <a class="struct" href="struct.RawTable.html" title="struct hashbrown::raw::RawTable">RawTable</a>&lt;T, A&gt;</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from_with_hasher" class="method has-srclink"><a class="srclink rightside" href="../../src/hashbrown/raw/mod.rs.html#1750-1790">source</a><h4 class="code-header">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 Fn(&amp;T) -&gt; u64<br>)</h4></section></summary><div class="docblock"><p>Variant of <code>clone_from</code> to use when a hasher is available.</p>
</div></details></div></details></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone-for-RawTable%3CT%2C%20A%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/hashbrown/raw/mod.rs.html#1599-1675">source</a><a href="#impl-Clone-for-RawTable%3CT%2C%20A%3E" class="anchor"></a><h3 class="code-header">impl&lt;T:&nbsp;Clone, A:&nbsp;Allocator + Clone&gt; Clone for <a class="struct" href="struct.RawTable.html" title="struct hashbrown::raw::RawTable">RawTable</a>&lt;T, A&gt;</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/hashbrown/raw/mod.rs.html#1600-1628">source</a><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a class="fnname">clone</a>(&amp;self) -&gt; Self</h4></section></summary><div class='docblock'>Returns a copy of the value. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/hashbrown/raw/mod.rs.html#1630-1674">source</a><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a class="fnname">clone_from</a>(&amp;mut self, source: &amp;Self)</h4></section></summary><div class='docblock'>Performs copy-assignment from <code>source</code>. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Default-for-RawTable%3CT%2C%20A%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/hashbrown/raw/mod.rs.html#1793-1798">source</a><a href="#impl-Default-for-RawTable%3CT%2C%20A%3E" class="anchor"></a><h3 class="code-header">impl&lt;T, A:&nbsp;Allocator + Clone + Default&gt; Default for <a class="struct" href="struct.RawTable.html" title="struct hashbrown::raw::RawTable">RawTable</a>&lt;T, A&gt;</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.default" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/hashbrown/raw/mod.rs.html#1795-1797">source</a><a href="#method.default" class="anchor"></a><h4 class="code-header">fn <a class="fnname">default</a>() -&gt; Self</h4></section></summary><div class='docblock'>Returns the “default value” for a type. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Drop-for-RawTable%3CT%2C%20A%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/hashbrown/raw/mod.rs.html#1813-1823">source</a><a href="#impl-Drop-for-RawTable%3CT%2C%20A%3E" class="anchor"></a><h3 class="code-header">impl&lt;T, A:&nbsp;Allocator + Clone&gt; Drop for <a class="struct" href="struct.RawTable.html" title="struct hashbrown::raw::RawTable">RawTable</a>&lt;T, A&gt;</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.drop" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/hashbrown/raw/mod.rs.html#1815-1822">source</a><a href="#method.drop" class="anchor"></a><h4 class="code-header">fn <a class="fnname">drop</a>(&amp;mut self)</h4></section></summary><div class='docblock'>Executes the destructor for this type. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-IntoIterator-for-RawTable%3CT%2C%20A%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/hashbrown/raw/mod.rs.html#1825-1836">source</a><a href="#impl-IntoIterator-for-RawTable%3CT%2C%20A%3E" class="anchor"></a><h3 class="code-header">impl&lt;T, A:&nbsp;Allocator + Clone&gt; IntoIterator for <a class="struct" href="struct.RawTable.html" title="struct hashbrown::raw::RawTable">RawTable</a>&lt;T, A&gt;</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Item" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Item" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Item</a> = T</h4></section></summary><div class='docblock'>The type of the elements being iterated over.</div></details><details class="rustdoc-toggle" open><summary><section id="associatedtype.IntoIter" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.IntoIter" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">IntoIter</a> = <a class="struct" href="struct.RawIntoIter.html" title="struct hashbrown::raw::RawIntoIter">RawIntoIter</a>&lt;T, A&gt;</h4></section></summary><div class='docblock'>Which kind of iterator are we turning this into?</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.into_iter" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/hashbrown/raw/mod.rs.html#1830-1835">source</a><a href="#method.into_iter" class="anchor"></a><h4 class="code-header">fn <a class="fnname">into_iter</a>(self) -&gt; <a class="struct" href="struct.RawIntoIter.html" title="struct hashbrown::raw::RawIntoIter">RawIntoIter</a>&lt;T, A&gt;<span class="notable-traits"><span class="notable-traits-tooltip"><span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.RawIntoIter.html" title="struct hashbrown::raw::RawIntoIter">RawIntoIter</a>&lt;T, A&gt;</span><code class="content"><span class="where fmt-newline">impl&lt;T, A:&nbsp;Allocator + Clone&gt; Iterator for <a class="struct" href="struct.RawIntoIter.html" title="struct hashbrown::raw::RawIntoIter">RawIntoIter</a>&lt;T, A&gt;</span><span class="where fmt-newline"> type <a class="associatedtype">Item</a> = T;</span></code></span></span></span></span></h4></section></summary><div class='docblock'>Creates an iterator from a value. <a>Read more</a></div></details></div></details><section id="impl-Send-for-RawTable%3CT%2C%20A%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/hashbrown/raw/mod.rs.html#1028-1033">source</a><a href="#impl-Send-for-RawTable%3CT%2C%20A%3E" class="anchor"></a><h3 class="code-header">impl&lt;T, A:&nbsp;Allocator + Clone&gt; Send for <a class="struct" href="struct.RawTable.html" title="struct hashbrown::raw::RawTable">RawTable</a>&lt;T, A&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: Send,<br>&nbsp;&nbsp;&nbsp;&nbsp;A: Send,</span></h3></section><section id="impl-Sync-for-RawTable%3CT%2C%20A%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/hashbrown/raw/mod.rs.html#1034-1039">source</a><a href="#impl-Sync-for-RawTable%3CT%2C%20A%3E" class="anchor"></a><h3 class="code-header">impl&lt;T, A:&nbsp;Allocator + Clone&gt; Sync for <a class="struct" href="struct.RawTable.html" title="struct hashbrown::raw::RawTable">RawTable</a>&lt;T, A&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: Sync,<br>&nbsp;&nbsp;&nbsp;&nbsp;A: Sync,</span></h3></section></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"><section id="impl-RefUnwindSafe-for-RawTable%3CT%2C%20A%3E" class="impl has-srclink"><a href="#impl-RefUnwindSafe-for-RawTable%3CT%2C%20A%3E" class="anchor"></a><h3 class="code-header">impl&lt;T, A&gt; RefUnwindSafe for <a class="struct" href="struct.RawTable.html" title="struct hashbrown::raw::RawTable">RawTable</a>&lt;T, A&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A: RefUnwindSafe,<br>&nbsp;&nbsp;&nbsp;&nbsp;T: RefUnwindSafe,</span></h3></section><section id="impl-Unpin-for-RawTable%3CT%2C%20A%3E" class="impl has-srclink"><a href="#impl-Unpin-for-RawTable%3CT%2C%20A%3E" class="anchor"></a><h3 class="code-header">impl&lt;T, A&gt; Unpin for <a class="struct" href="struct.RawTable.html" title="struct hashbrown::raw::RawTable">RawTable</a>&lt;T, A&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A: Unpin,<br>&nbsp;&nbsp;&nbsp;&nbsp;T: Unpin,</span></h3></section><section id="impl-UnwindSafe-for-RawTable%3CT%2C%20A%3E" class="impl has-srclink"><a href="#impl-UnwindSafe-for-RawTable%3CT%2C%20A%3E" class="anchor"></a><h3 class="code-header">impl&lt;T, A&gt; UnwindSafe for <a class="struct" href="struct.RawTable.html" title="struct hashbrown::raw::RawTable">RawTable</a>&lt;T, A&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A: UnwindSafe,<br>&nbsp;&nbsp;&nbsp;&nbsp;T: UnwindSafe,</span></h3></section></div><h2 id="blanket-implementations" class="small-section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor"></a></h2><div id="blanket-implementations-list"><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Any-for-RawTable%3CT%2C%20A%3E" class="impl has-srclink"><a href="#impl-Any-for-RawTable%3CT%2C%20A%3E" class="anchor"></a><h3 class="code-header">impl&lt;T&gt; Any for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: 'static + ?Sized,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl has-srclink"><a href="#method.type_id" class="anchor"></a><h4 class="code-header">fn <a class="fnname">type_id</a>(&amp;self) -&gt; TypeId</h4></section></summary><div class='docblock'>Gets the <code>TypeId</code> of <code>self</code>. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Borrow%3CT%3E-for-RawTable%3CT%2C%20A%3E" class="impl has-srclink"><a href="#impl-Borrow%3CT%3E-for-RawTable%3CT%2C%20A%3E" class="anchor"></a><h3 class="code-header">impl&lt;T&gt; Borrow&lt;T&gt; for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: ?Sized,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.borrow" class="method trait-impl has-srclink"><span class="since rightside" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/91522" title="Tracking issue for const_borrow">unstable</a></span><a href="#method.borrow" class="anchor"></a><h4 class="code-header">fn <a class="fnname">borrow</a>(&amp;self) -&gt; &amp;T</h4></section></summary><div class='docblock'>Immutably borrows from an owned value. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-BorrowMut%3CT%3E-for-RawTable%3CT%2C%20A%3E" class="impl has-srclink"><a href="#impl-BorrowMut%3CT%3E-for-RawTable%3CT%2C%20A%3E" class="anchor"></a><h3 class="code-header">impl&lt;T&gt; BorrowMut&lt;T&gt; for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: ?Sized,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.borrow_mut" class="method trait-impl has-srclink"><span class="since rightside" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/91522" title="Tracking issue for const_borrow">unstable</a></span><a href="#method.borrow_mut" class="anchor"></a><h4 class="code-header">fn <a class="fnname">borrow_mut</a>(&amp;mut self) -&gt; &amp;mut T</h4></section></summary><div class='docblock'>Mutably borrows from an owned value. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-From%3CT%3E-for-RawTable%3CT%2C%20A%3E" class="impl has-srclink"><a href="#impl-From%3CT%3E-for-RawTable%3CT%2C%20A%3E" class="anchor"></a><h3 class="code-header">impl&lt;T&gt; From&lt;T&gt; for T</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from" class="method trait-impl has-srclink"><span class="since rightside" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a class="fnname">from</a>(t: T) -&gt; T</h4></section></summary><div class="docblock"><p>Returns the argument unchanged.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Into%3CU%3E-for-RawTable%3CT%2C%20A%3E" class="impl has-srclink"><a href="#impl-Into%3CU%3E-for-RawTable%3CT%2C%20A%3E" class="anchor"></a><h3 class="code-header">impl&lt;T, U&gt; Into&lt;U&gt; for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: From&lt;T&gt;,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.into" class="method trait-impl has-srclink"><span class="since rightside" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span><a href="#method.into" class="anchor"></a><h4 class="code-header">fn <a class="fnname">into</a>(self) -&gt; U</h4></section></summary><div class="docblock"><p>Calls <code>U::from(self)</code>.</p>
<p>That is, this conversion is whatever the implementation of
<code>[From]&lt;T&gt; for U</code> chooses to do.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-ToOwned-for-RawTable%3CT%2C%20A%3E" class="impl has-srclink"><a href="#impl-ToOwned-for-RawTable%3CT%2C%20A%3E" class="anchor"></a><h3 class="code-header">impl&lt;T&gt; ToOwned for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: Clone,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Owned" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Owned" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Owned</a> = T</h4></section></summary><div class='docblock'>The resulting type after obtaining ownership.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_owned" class="method trait-impl has-srclink"><a href="#method.to_owned" class="anchor"></a><h4 class="code-header">fn <a class="fnname">to_owned</a>(&amp;self) -&gt; T</h4></section></summary><div class='docblock'>Creates owned data from borrowed data, usually by cloning. <a>Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_into" class="method trait-impl has-srclink"><a href="#method.clone_into" class="anchor"></a><h4 class="code-header">fn <a class="fnname">clone_into</a>(&amp;self, target: &amp;mut T)</h4></section></summary><div class='docblock'>Uses borrowed data to replace owned data, usually by cloning. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-TryFrom%3CU%3E-for-RawTable%3CT%2C%20A%3E" class="impl has-srclink"><a href="#impl-TryFrom%3CU%3E-for-RawTable%3CT%2C%20A%3E" class="anchor"></a><h3 class="code-header">impl&lt;T, U&gt; TryFrom&lt;U&gt; for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: Into&lt;T&gt;,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Error-1" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Error-1" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Error</a> = Infallible</h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.try_from" class="method trait-impl has-srclink"><span class="since rightside" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span><a href="#method.try_from" class="anchor"></a><h4 class="code-header">fn <a class="fnname">try_from</a>(value: U) -&gt; Result&lt;T, &lt;T as TryFrom&lt;U&gt;&gt;::Error&gt;</h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-TryInto%3CU%3E-for-RawTable%3CT%2C%20A%3E" class="impl has-srclink"><a href="#impl-TryInto%3CU%3E-for-RawTable%3CT%2C%20A%3E" class="anchor"></a><h3 class="code-header">impl&lt;T, U&gt; TryInto&lt;U&gt; for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: TryFrom&lt;T&gt;,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Error" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Error" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Error</a> = &lt;U as TryFrom&lt;T&gt;&gt;::Error</h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.try_into" class="method trait-impl has-srclink"><span class="since rightside" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span><a href="#method.try_into" class="anchor"></a><h4 class="code-header">fn <a class="fnname">try_into</a>(self) -&gt; Result&lt;U, &lt;U as TryFrom&lt;T&gt;&gt;::Error&gt;</h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details></div></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-current-crate="hashbrown" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.66.0-nightly (5c8bff74b 2022-10-21)" ></div></body></html>