Files
zclaw_openfang/target/doc/dashmap/struct.DashMap.html
iven 1c697d0b46
Some checks failed
CI / Lint & TypeCheck (push) Has been cancelled
CI / Unit Tests (push) Has been cancelled
CI / Build Frontend (push) Has been cancelled
CI / Rust Check (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
CI / E2E Tests (push) Has been cancelled
chore: 清理临时管理目录并更新文档索引
删除 admin-temp-dir 目录及其内容
更新文档索引以包含 dashmap 相关文件
2026-04-03 00:42:48 +08:00

378 lines
143 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="DashMap is an implementation of a concurrent associative array/hashmap in Rust."><title>DashMap in dashmap - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../static.files/rustdoc-ca0dd0c4.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="dashmap" data-themes="" data-resource-suffix="" data-rustdoc-version="1.93.1 (01f6ddf75 2026-02-11)" data-channel="1.93.1" data-search-js="search-9e2438ea.js" data-stringdex-js="stringdex-a3946164.js" data-settings-js="settings-c38705f0.js" ><script src="../static.files/storage-e2aeef58.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-a410ff4d.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-044be391.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]--><rustdoc-topbar><h2><a href="#">DashMap</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../dashmap/index.html">dashmap</a><span class="version">6.1.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">DashMap</a></h2><h3><a href="#implementations">Methods</a></h3><ul class="block method"><li><a href="#method.alter" title="alter">alter</a></li><li><a href="#method.alter_all" title="alter_all">alter_all</a></li><li><a href="#method.capacity" title="capacity">capacity</a></li><li><a href="#method.clear" title="clear">clear</a></li><li><a href="#method.contains_key" title="contains_key">contains_key</a></li><li><a href="#method.entry" title="entry">entry</a></li><li><a href="#method.get" title="get">get</a></li><li><a href="#method.get_mut" title="get_mut">get_mut</a></li><li><a href="#method.hash_usize" title="hash_usize">hash_usize</a></li><li><a href="#method.hasher" title="hasher">hasher</a></li><li><a href="#method.insert" title="insert">insert</a></li><li><a href="#method.into_read_only" title="into_read_only">into_read_only</a></li><li><a href="#method.is_empty" title="is_empty">is_empty</a></li><li><a href="#method.iter" title="iter">iter</a></li><li><a href="#method.iter_mut" title="iter_mut">iter_mut</a></li><li><a href="#method.len" title="len">len</a></li><li><a href="#method.new" title="new">new</a></li><li><a href="#method.remove" title="remove">remove</a></li><li><a href="#method.remove_if" title="remove_if">remove_if</a></li><li><a href="#method.remove_if_mut" title="remove_if_mut">remove_if_mut</a></li><li><a href="#method.retain" title="retain">retain</a></li><li><a href="#method.shrink_to_fit" title="shrink_to_fit">shrink_to_fit</a></li><li><a href="#method.try_entry" title="try_entry">try_entry</a></li><li><a href="#method.try_get" title="try_get">try_get</a></li><li><a href="#method.try_get_mut" title="try_get_mut">try_get_mut</a></li><li><a href="#method.try_reserve" title="try_reserve">try_reserve</a></li><li><a href="#method.view" title="view">view</a></li><li><a href="#method.with_capacity" title="with_capacity">with_capacity</a></li><li><a href="#method.with_capacity_and_hasher" title="with_capacity_and_hasher">with_capacity_and_hasher</a></li><li><a href="#method.with_capacity_and_hasher_and_shard_amount" title="with_capacity_and_hasher_and_shard_amount">with_capacity_and_hasher_and_shard_amount</a></li><li><a href="#method.with_capacity_and_shard_amount" title="with_capacity_and_shard_amount">with_capacity_and_shard_amount</a></li><li><a href="#method.with_hasher" title="with_hasher">with_hasher</a></li><li><a href="#method.with_hasher_and_shard_amount" title="with_hasher_and_shard_amount">with_hasher_and_shard_amount</a></li><li><a href="#method.with_shard_amount" title="with_shard_amount">with_shard_amount</a></li></ul><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block trait-implementation"><li><a href="#impl-BitAnd%3C%26Q%3E-for-%26DashMap%3CK,+V,+S%3E" title="BitAnd&#60;&#38;Q&#62;">BitAnd&#60;&#38;Q&#62;</a></li><li><a href="#impl-BitOr%3C%26Q%3E-for-%26DashMap%3CK,+V,+S%3E" title="BitOr&#60;&#38;Q&#62;">BitOr&#60;&#38;Q&#62;</a></li><li><a href="#impl-Clone-for-DashMap%3CK,+V,+S%3E" title="Clone">Clone</a></li><li><a href="#impl-Debug-for-DashMap%3CK,+V,+S%3E" title="Debug">Debug</a></li><li><a href="#impl-Default-for-DashMap%3CK,+V,+S%3E" title="Default">Default</a></li><li><a href="#impl-Extend%3C(K,+V)%3E-for-DashMap%3CK,+V,+S%3E" title="Extend&#60;(K, V)&#62;">Extend&#60;(K, V)&#62;</a></li><li><a href="#impl-FromIterator%3C(K,+V)%3E-for-DashMap%3CK,+V,+S%3E" title="FromIterator&#60;(K, V)&#62;">FromIterator&#60;(K, V)&#62;</a></li><li><a href="#impl-IntoIterator-for-%26DashMap%3CK,+V,+S%3E" title="IntoIterator">IntoIterator</a></li><li><a href="#impl-IntoIterator-for-DashMap%3CK,+V,+S%3E" title="IntoIterator">IntoIterator</a></li><li><a href="#impl-Map%3C'a,+K,+V,+S%3E-for-DashMap%3CK,+V,+S%3E" title="Map&#60;&#39;a, K, V, S&#62;">Map&#60;&#39;a, K, V, S&#62;</a></li><li><a href="#impl-Shl%3C(K,+V)%3E-for-%26DashMap%3CK,+V,+S%3E" title="Shl&#60;(K, V)&#62;">Shl&#60;(K, V)&#62;</a></li><li><a href="#impl-Shr%3C%26Q%3E-for-%26DashMap%3CK,+V,+S%3E" title="Shr&#60;&#38;Q&#62;">Shr&#60;&#38;Q&#62;</a></li><li><a href="#impl-Sub%3C%26Q%3E-for-%26DashMap%3CK,+V,+S%3E" title="Sub&#60;&#38;Q&#62;">Sub&#60;&#38;Q&#62;</a></li></ul><h3><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul class="block synthetic-implementation"><li><a href="#impl-RefUnwindSafe-for-DashMap%3CK,+V,+S%3E" title="!RefUnwindSafe">!RefUnwindSafe</a></li><li><a href="#impl-Freeze-for-DashMap%3CK,+V,+S%3E" title="Freeze">Freeze</a></li><li><a href="#impl-Send-for-DashMap%3CK,+V,+S%3E" title="Send">Send</a></li><li><a href="#impl-Sync-for-DashMap%3CK,+V,+S%3E" title="Sync">Sync</a></li><li><a href="#impl-Unpin-for-DashMap%3CK,+V,+S%3E" title="Unpin">Unpin</a></li><li><a href="#impl-UnwindSafe-for-DashMap%3CK,+V,+S%3E" title="UnwindSafe">UnwindSafe</a></li></ul><h3><a href="#blanket-implementations">Blanket Implementations</a></h3><ul class="block blanket-implementation"><li><a href="#impl-Any-for-T" title="Any">Any</a></li><li><a href="#impl-Borrow%3CT%3E-for-T" title="Borrow&#60;T&#62;">Borrow&#60;T&#62;</a></li><li><a href="#impl-BorrowMut%3CT%3E-for-T" title="BorrowMut&#60;T&#62;">BorrowMut&#60;T&#62;</a></li><li><a href="#impl-CloneToUninit-for-T" title="CloneToUninit">CloneToUninit</a></li><li><a href="#impl-From%3CT%3E-for-T" title="From&#60;T&#62;">From&#60;T&#62;</a></li><li><a href="#impl-Into%3CU%3E-for-T" title="Into&#60;U&#62;">Into&#60;U&#62;</a></li><li><a href="#impl-ToOwned-for-T" title="ToOwned">ToOwned</a></li><li><a href="#impl-TryFrom%3CU%3E-for-T" title="TryFrom&#60;U&#62;">TryFrom&#60;U&#62;</a></li><li><a href="#impl-TryInto%3CU%3E-for-T" title="TryInto&#60;U&#62;">TryInto&#60;U&#62;</a></li></ul></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="index.html">In crate dashmap</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="index.html">dashmap</a></div><h1>Struct <span class="struct">DashMap</span>&nbsp;<button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../src/dashmap/lib.rs.html#89-93">Source</a> </span></div><pre class="rust item-decl"><code>pub struct DashMap&lt;K, V, S = <a class="struct" href="https://doc.rust-lang.org/1.93.1/std/hash/random/struct.RandomState.html" title="struct std::hash::random::RandomState">RandomState</a>&gt; { <span class="comment">/* private fields */</span> }</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>DashMap is an implementation of a concurrent associative array/hashmap in Rust.</p>
<p>DashMap tries to implement an easy to use API similar to <code>std::collections::HashMap</code>
with some slight changes to handle concurrency.</p>
<p>DashMap tries to be very simple to use and to be a direct replacement for <code>RwLock&lt;HashMap&lt;K, V&gt;&gt;</code>.
To accomplish this, all methods take <code>&amp;self</code> instead of modifying methods taking <code>&amp;mut self</code>.
This allows you to put a DashMap in an <code>Arc&lt;T&gt;</code> and share it between threads while being able to modify it.</p>
<p>Documentation mentioning locking behaviour acts in the reference frame of the calling thread.
This means that it is safe to ignore it across multiple threads.</p>
</div></details><h2 id="implementations" class="section-header">Implementations<a href="#implementations" class="anchor">§</a></h2><div id="implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-DashMap%3CK,+V%3E" class="impl"><a class="src rightside" href="../src/dashmap/lib.rs.html#123-192">Source</a><a href="#impl-DashMap%3CK,+V%3E" class="anchor">§</a><h3 class="code-header">impl&lt;'a, K: 'a + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a>, V: 'a&gt; <a class="struct" href="struct.DashMap.html" title="struct dashmap::DashMap">DashMap</a>&lt;K, V, <a class="struct" href="https://doc.rust-lang.org/1.93.1/std/hash/random/struct.RandomState.html" title="struct std::hash::random::RandomState">RandomState</a>&gt;</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.new" class="method"><a class="src rightside" href="../src/dashmap/lib.rs.html#134-136">Source</a><h4 class="code-header">pub fn <a href="#method.new" class="fn">new</a>() -&gt; Self</h4></section></summary><div class="docblock"><p>Creates a new DashMap with a capacity of 0.</p>
<h5 id="examples"><a class="doc-anchor" href="#examples">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>dashmap::DashMap;
<span class="kw">let </span>reviews = DashMap::new();
reviews.insert(<span class="string">"Veloren"</span>, <span class="string">"What a fantastic game!"</span>);</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="method.with_capacity" class="method"><a class="src rightside" href="../src/dashmap/lib.rs.html#149-151">Source</a><h4 class="code-header">pub fn <a href="#method.with_capacity" class="fn">with_capacity</a>(capacity: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.usize.html">usize</a>) -&gt; Self</h4></section></summary><div class="docblock"><p>Creates a new DashMap with a specified starting capacity.</p>
<h5 id="examples-1"><a class="doc-anchor" href="#examples-1">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>dashmap::DashMap;
<span class="kw">let </span>mappings = DashMap::with_capacity(<span class="number">2</span>);
mappings.insert(<span class="number">2</span>, <span class="number">4</span>);
mappings.insert(<span class="number">8</span>, <span class="number">16</span>);</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="method.with_shard_amount" class="method"><a class="src rightside" href="../src/dashmap/lib.rs.html#167-169">Source</a><h4 class="code-header">pub fn <a href="#method.with_shard_amount" class="fn">with_shard_amount</a>(shard_amount: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.usize.html">usize</a>) -&gt; Self</h4></section></summary><div class="docblock"><p>Creates a new DashMap with a specified shard amount</p>
<p>shard_amount should greater than 0 and be a power of two.
If a shard_amount which is not a power of two is provided, the function will panic.</p>
<h5 id="examples-2"><a class="doc-anchor" href="#examples-2">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>dashmap::DashMap;
<span class="kw">let </span>mappings = DashMap::with_shard_amount(<span class="number">32</span>);
mappings.insert(<span class="number">2</span>, <span class="number">4</span>);
mappings.insert(<span class="number">8</span>, <span class="number">16</span>);</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="method.with_capacity_and_shard_amount" class="method"><a class="src rightside" href="../src/dashmap/lib.rs.html#185-191">Source</a><h4 class="code-header">pub fn <a href="#method.with_capacity_and_shard_amount" class="fn">with_capacity_and_shard_amount</a>(
capacity: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.usize.html">usize</a>,
shard_amount: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.usize.html">usize</a>,
) -&gt; Self</h4></section></summary><div class="docblock"><p>Creates a new DashMap with a specified capacity and shard amount.</p>
<p>shard_amount should greater than 0 and be a power of two.
If a shard_amount which is not a power of two is provided, the function will panic.</p>
<h5 id="examples-3"><a class="doc-anchor" href="#examples-3">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>dashmap::DashMap;
<span class="kw">let </span>mappings = DashMap::with_capacity_and_shard_amount(<span class="number">32</span>, <span class="number">32</span>);
mappings.insert(<span class="number">2</span>, <span class="number">4</span>);
mappings.insert(<span class="number">8</span>, <span class="number">16</span>);</code></pre></div></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-DashMap%3CK,+V,+S%3E" class="impl"><a class="src rightside" href="../src/dashmap/lib.rs.html#194-904">Source</a><a href="#impl-DashMap%3CK,+V,+S%3E" class="anchor">§</a><h3 class="code-header">impl&lt;'a, K: 'a + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a>, V: 'a, S: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/hash/trait.BuildHasher.html" title="trait core::hash::BuildHasher">BuildHasher</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>&gt; <a class="struct" href="struct.DashMap.html" title="struct dashmap::DashMap">DashMap</a>&lt;K, V, S&gt;</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into_read_only" class="method"><a class="src rightside" href="../src/dashmap/lib.rs.html#196-198">Source</a><h4 class="code-header">pub fn <a href="#method.into_read_only" class="fn">into_read_only</a>(self) -&gt; <a class="struct" href="struct.ReadOnlyView.html" title="struct dashmap::ReadOnlyView">ReadOnlyView</a>&lt;K, V, S&gt;</h4></section></summary><div class="docblock"><p>Wraps this <code>DashMap</code> into a read-only view. This view allows to obtain raw references to the stored values.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.with_hasher" class="method"><a class="src rightside" href="../src/dashmap/lib.rs.html#212-214">Source</a><h4 class="code-header">pub fn <a href="#method.with_hasher" class="fn">with_hasher</a>(hasher: S) -&gt; Self</h4></section></summary><div class="docblock"><p>Creates a new DashMap with a capacity of 0 and the provided hasher.</p>
<h5 id="examples-4"><a class="doc-anchor" href="#examples-4">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>dashmap::DashMap;
<span class="kw">use </span>std::collections::hash_map::RandomState;
<span class="kw">let </span>s = RandomState::new();
<span class="kw">let </span>reviews = DashMap::with_hasher(s);
reviews.insert(<span class="string">"Veloren"</span>, <span class="string">"What a fantastic game!"</span>);</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="method.with_capacity_and_hasher" class="method"><a class="src rightside" href="../src/dashmap/lib.rs.html#229-231">Source</a><h4 class="code-header">pub fn <a href="#method.with_capacity_and_hasher" class="fn">with_capacity_and_hasher</a>(capacity: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.usize.html">usize</a>, hasher: S) -&gt; Self</h4></section></summary><div class="docblock"><p>Creates a new DashMap with a specified starting capacity and hasher.</p>
<h5 id="examples-5"><a class="doc-anchor" href="#examples-5">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>dashmap::DashMap;
<span class="kw">use </span>std::collections::hash_map::RandomState;
<span class="kw">let </span>s = RandomState::new();
<span class="kw">let </span>mappings = DashMap::with_capacity_and_hasher(<span class="number">2</span>, s);
mappings.insert(<span class="number">2</span>, <span class="number">4</span>);
mappings.insert(<span class="number">8</span>, <span class="number">16</span>);</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="method.with_hasher_and_shard_amount" class="method"><a class="src rightside" href="../src/dashmap/lib.rs.html#249-251">Source</a><h4 class="code-header">pub fn <a href="#method.with_hasher_and_shard_amount" class="fn">with_hasher_and_shard_amount</a>(hasher: S, shard_amount: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.usize.html">usize</a>) -&gt; Self</h4></section></summary><div class="docblock"><p>Creates a new DashMap with a specified hasher and shard amount</p>
<p>shard_amount should be greater than 0 and a power of two.
If a shard_amount which is not a power of two is provided, the function will panic.</p>
<h5 id="examples-6"><a class="doc-anchor" href="#examples-6">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>dashmap::DashMap;
<span class="kw">use </span>std::collections::hash_map::RandomState;
<span class="kw">let </span>s = RandomState::new();
<span class="kw">let </span>mappings = DashMap::with_hasher_and_shard_amount(s, <span class="number">32</span>);
mappings.insert(<span class="number">2</span>, <span class="number">4</span>);
mappings.insert(<span class="number">8</span>, <span class="number">16</span>);</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="method.with_capacity_and_hasher_and_shard_amount" class="method"><a class="src rightside" href="../src/dashmap/lib.rs.html#269-294">Source</a><h4 class="code-header">pub fn <a href="#method.with_capacity_and_hasher_and_shard_amount" class="fn">with_capacity_and_hasher_and_shard_amount</a>(
capacity: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.usize.html">usize</a>,
hasher: S,
shard_amount: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.usize.html">usize</a>,
) -&gt; Self</h4></section></summary><div class="docblock"><p>Creates a new DashMap with a specified starting capacity, hasher and shard_amount.</p>
<p>shard_amount should greater than 0 and be a power of two.
If a shard_amount which is not a power of two is provided, the function will panic.</p>
<h5 id="examples-7"><a class="doc-anchor" href="#examples-7">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>dashmap::DashMap;
<span class="kw">use </span>std::collections::hash_map::RandomState;
<span class="kw">let </span>s = RandomState::new();
<span class="kw">let </span>mappings = DashMap::with_capacity_and_hasher_and_shard_amount(<span class="number">2</span>, s, <span class="number">32</span>);
mappings.insert(<span class="number">2</span>, <span class="number">4</span>);
mappings.insert(<span class="number">8</span>, <span class="number">16</span>);</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="method.hash_usize" class="method"><a class="src rightside" href="../src/dashmap/lib.rs.html#298-300">Source</a><h4 class="code-header">pub fn <a href="#method.hash_usize" class="fn">hash_usize</a>&lt;T: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a>&gt;(&amp;self, item: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;T</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.usize.html">usize</a></h4></section></summary><div class="docblock"><p>Hash a given item to produce a usize.
Uses the provided or default HashBuilder.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.hasher" class="method"><a class="src rightside" href="../src/dashmap/lib.rs.html#456-458">Source</a><h4 class="code-header">pub fn <a href="#method.hasher" class="fn">hasher</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;S</a></h4></section></summary><div class="docblock"><p>Returns a reference to the maps <a href="https://doc.rust-lang.org/std/hash/trait.BuildHasher.html"><code>BuildHasher</code></a>.</p>
<h5 id="examples-8"><a class="doc-anchor" href="#examples-8">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>dashmap::DashMap;
<span class="kw">use </span>std::collections::hash_map::RandomState;
<span class="kw">let </span>hasher = RandomState::new();
<span class="kw">let </span>map: DashMap&lt;i32, i32&gt; = DashMap::new();
<span class="kw">let </span>hasher: <span class="kw-2">&amp;</span>RandomState = map.hasher();</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="method.insert" class="method"><a class="src rightside" href="../src/dashmap/lib.rs.html#472-474">Source</a><h4 class="code-header">pub fn <a href="#method.insert" class="fn">insert</a>(&amp;self, key: K, value: V) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;V&gt;</h4></section></summary><div class="docblock"><p>Inserts a key and a value into the map. Returns the old value associated with the key if there was one.</p>
<p><strong>Locking behaviour:</strong> May deadlock if called when holding any sort of reference into the map.</p>
<h5 id="examples-9"><a class="doc-anchor" href="#examples-9">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>dashmap::DashMap;
<span class="kw">let </span>map = DashMap::new();
map.insert(<span class="string">"I am the key!"</span>, <span class="string">"And I am the value!"</span>);</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="method.remove" class="method"><a class="src rightside" href="../src/dashmap/lib.rs.html#489-495">Source</a><h4 class="code-header">pub fn <a href="#method.remove" class="fn">remove</a>&lt;Q&gt;(&amp;self, key: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;Q</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.tuple.html">(K, V)</a>&gt;<div class="where">where
K: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;Q&gt;,
Q: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class="docblock"><p>Removes an entry from the map, returning the key and value if they existed in the map.</p>
<p><strong>Locking behaviour:</strong> May deadlock if called when holding any sort of reference into the map.</p>
<h5 id="examples-10"><a class="doc-anchor" href="#examples-10">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>dashmap::DashMap;
<span class="kw">let </span>soccer_team = DashMap::new();
soccer_team.insert(<span class="string">"Jack"</span>, <span class="string">"Goalie"</span>);
<span class="macro">assert_eq!</span>(soccer_team.remove(<span class="string">"Jack"</span>).unwrap().<span class="number">1</span>, <span class="string">"Goalie"</span>);</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="method.remove_if" class="method"><a class="src rightside" href="../src/dashmap/lib.rs.html#518-524">Source</a><h4 class="code-header">pub fn <a href="#method.remove_if" class="fn">remove_if</a>&lt;Q&gt;(
&amp;self,
key: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;Q</a>,
f: impl <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;K</a>, <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;V</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.bool.html">bool</a>,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.tuple.html">(K, V)</a>&gt;<div class="where">where
K: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;Q&gt;,
Q: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class="docblock"><p>Removes an entry from the map, returning the key and value
if the entry existed and the provided conditional function returned true.</p>
<p><strong>Locking behaviour:</strong> May deadlock if called when holding any sort of reference into the map.</p>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>dashmap::DashMap;
<span class="kw">let </span>soccer_team = DashMap::new();
soccer_team.insert(<span class="string">"Sam"</span>, <span class="string">"Forward"</span>);
soccer_team.remove_if(<span class="string">"Sam"</span>, |<span class="kw">_</span>, position| position == <span class="kw-2">&amp;</span><span class="string">"Goalie"</span>);
<span class="macro">assert!</span>(soccer_team.contains_key(<span class="string">"Sam"</span>));</code></pre></div>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>dashmap::DashMap;
<span class="kw">let </span>soccer_team = DashMap::new();
soccer_team.insert(<span class="string">"Sam"</span>, <span class="string">"Forward"</span>);
soccer_team.remove_if(<span class="string">"Sam"</span>, |<span class="kw">_</span>, position| position == <span class="kw-2">&amp;</span><span class="string">"Forward"</span>);
<span class="macro">assert!</span>(!soccer_team.contains_key(<span class="string">"Sam"</span>));</code></pre></div></div></details><section id="method.remove_if_mut" class="method"><a class="src rightside" href="../src/dashmap/lib.rs.html#526-532">Source</a><h4 class="code-header">pub fn <a href="#method.remove_if_mut" class="fn">remove_if_mut</a>&lt;Q&gt;(
&amp;self,
key: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;Q</a>,
f: impl <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;K</a>, <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;mut V</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.bool.html">bool</a>,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.tuple.html">(K, V)</a>&gt;<div class="where">where
K: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;Q&gt;,
Q: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section><details class="toggle method-toggle" open><summary><section id="method.iter" class="method"><a class="src rightside" href="../src/dashmap/lib.rs.html#547-549">Source</a><h4 class="code-header">pub fn <a href="#method.iter" class="fn">iter</a>(&amp;'a self) -&gt; <a class="struct" href="iter/struct.Iter.html" title="struct dashmap::iter::Iter">Iter</a>&lt;'a, K, V, S, <a class="struct" href="struct.DashMap.html" title="struct dashmap::DashMap">DashMap</a>&lt;K, V, S&gt;&gt; <a href="#" class="tooltip" data-notable-ty="Iter&lt;&#39;a, K, V, S, DashMap&lt;K, V, S&gt;&gt;"></a></h4></section></summary><div class="docblock"><p>Creates an iterator over a DashMap yielding immutable references.</p>
<p><strong>Locking behaviour:</strong> May deadlock if called when holding a mutable reference into the map.</p>
<h5 id="examples-11"><a class="doc-anchor" href="#examples-11">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>dashmap::DashMap;
<span class="kw">let </span>words = DashMap::new();
words.insert(<span class="string">"hello"</span>, <span class="string">"world"</span>);
<span class="macro">assert_eq!</span>(words.iter().count(), <span class="number">1</span>);</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="method.iter_mut" class="method"><a class="src rightside" href="../src/dashmap/lib.rs.html#565-567">Source</a><h4 class="code-header">pub fn <a href="#method.iter_mut" class="fn">iter_mut</a>(&amp;'a self) -&gt; <a class="struct" href="iter/struct.IterMut.html" title="struct dashmap::iter::IterMut">IterMut</a>&lt;'a, K, V, S, <a class="struct" href="struct.DashMap.html" title="struct dashmap::DashMap">DashMap</a>&lt;K, V, S&gt;&gt; <a href="#" class="tooltip" data-notable-ty="IterMut&lt;&#39;a, K, V, S, DashMap&lt;K, V, S&gt;&gt;"></a></h4></section></summary><div class="docblock"><p>Iterator over a DashMap yielding mutable references.</p>
<p><strong>Locking behaviour:</strong> May deadlock if called when holding any sort of reference into the map.</p>
<h5 id="examples-12"><a class="doc-anchor" href="#examples-12">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>dashmap::DashMap;
<span class="kw">let </span>map = DashMap::new();
map.insert(<span class="string">"Johnny"</span>, <span class="number">21</span>);
map.iter_mut().for_each(|<span class="kw-2">mut </span>r| <span class="kw-2">*</span>r += <span class="number">1</span>);
<span class="macro">assert_eq!</span>(<span class="kw-2">*</span>map.get(<span class="string">"Johnny"</span>).unwrap(), <span class="number">22</span>);</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="method.get" class="method"><a class="src rightside" href="../src/dashmap/lib.rs.html#582-588">Source</a><h4 class="code-header">pub fn <a href="#method.get" class="fn">get</a>&lt;Q&gt;(&amp;'a self, key: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;Q</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="mapref/one/struct.Ref.html" title="struct dashmap::mapref::one::Ref">Ref</a>&lt;'a, K, V&gt;&gt;<div class="where">where
K: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;Q&gt;,
Q: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class="docblock"><p>Get an immutable reference to an entry in the map</p>
<p><strong>Locking behaviour:</strong> May deadlock if called when holding a mutable reference into the map.</p>
<h5 id="examples-13"><a class="doc-anchor" href="#examples-13">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>dashmap::DashMap;
<span class="kw">let </span>youtubers = DashMap::new();
youtubers.insert(<span class="string">"Bosnian Bill"</span>, <span class="number">457000</span>);
<span class="macro">assert_eq!</span>(<span class="kw-2">*</span>youtubers.get(<span class="string">"Bosnian Bill"</span>).unwrap(), <span class="number">457000</span>);</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="method.get_mut" class="method"><a class="src rightside" href="../src/dashmap/lib.rs.html#604-610">Source</a><h4 class="code-header">pub fn <a href="#method.get_mut" class="fn">get_mut</a>&lt;Q&gt;(&amp;'a self, key: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;Q</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="mapref/one/struct.RefMut.html" title="struct dashmap::mapref::one::RefMut">RefMut</a>&lt;'a, K, V&gt;&gt;<div class="where">where
K: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;Q&gt;,
Q: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class="docblock"><p>Get a mutable reference to an entry in the map</p>
<p><strong>Locking behaviour:</strong> May deadlock if called when holding any sort of reference into the map.</p>
<h5 id="examples-14"><a class="doc-anchor" href="#examples-14">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>dashmap::DashMap;
<span class="kw">let </span>class = DashMap::new();
class.insert(<span class="string">"Albin"</span>, <span class="number">15</span>);
<span class="kw-2">*</span>class.get_mut(<span class="string">"Albin"</span>).unwrap() -= <span class="number">1</span>;
<span class="macro">assert_eq!</span>(<span class="kw-2">*</span>class.get(<span class="string">"Albin"</span>).unwrap(), <span class="number">14</span>);</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="method.try_get" class="method"><a class="src rightside" href="../src/dashmap/lib.rs.html#631-637">Source</a><h4 class="code-header">pub fn <a href="#method.try_get" class="fn">try_get</a>&lt;Q&gt;(&amp;'a self, key: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;Q</a>) -&gt; <a class="enum" href="try_result/enum.TryResult.html" title="enum dashmap::try_result::TryResult">TryResult</a>&lt;<a class="struct" href="mapref/one/struct.Ref.html" title="struct dashmap::mapref::one::Ref">Ref</a>&lt;'a, K, V&gt;&gt;<div class="where">where
K: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;Q&gt;,
Q: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class="docblock"><p>Get an immutable reference to an entry in the map, if the shard is not locked.
If the shard is locked, the function will return <a href="try_result/enum.TryResult.html#variant.Locked" title="variant dashmap::try_result::TryResult::Locked">TryResult::Locked</a>.</p>
<h5 id="examples-15"><a class="doc-anchor" href="#examples-15">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>dashmap::DashMap;
<span class="kw">use </span>dashmap::try_result::TryResult;
<span class="kw">let </span>map = DashMap::new();
map.insert(<span class="string">"Johnny"</span>, <span class="number">21</span>);
<span class="macro">assert_eq!</span>(<span class="kw-2">*</span>map.try_get(<span class="string">"Johnny"</span>).unwrap(), <span class="number">21</span>);
<span class="kw">let </span>_result1_locking = map.get_mut(<span class="string">"Johnny"</span>);
<span class="kw">let </span>result2 = map.try_get(<span class="string">"Johnny"</span>);
<span class="macro">assert!</span>(result2.is_locked());</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="method.try_get_mut" class="method"><a class="src rightside" href="../src/dashmap/lib.rs.html#659-665">Source</a><h4 class="code-header">pub fn <a href="#method.try_get_mut" class="fn">try_get_mut</a>&lt;Q&gt;(&amp;'a self, key: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;Q</a>) -&gt; <a class="enum" href="try_result/enum.TryResult.html" title="enum dashmap::try_result::TryResult">TryResult</a>&lt;<a class="struct" href="mapref/one/struct.RefMut.html" title="struct dashmap::mapref::one::RefMut">RefMut</a>&lt;'a, K, V&gt;&gt;<div class="where">where
K: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;Q&gt;,
Q: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class="docblock"><p>Get a mutable reference to an entry in the map, if the shard is not locked.
If the shard is locked, the function will return <a href="try_result/enum.TryResult.html#variant.Locked" title="variant dashmap::try_result::TryResult::Locked">TryResult::Locked</a>.</p>
<h5 id="examples-16"><a class="doc-anchor" href="#examples-16">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>dashmap::DashMap;
<span class="kw">use </span>dashmap::try_result::TryResult;
<span class="kw">let </span>map = DashMap::new();
map.insert(<span class="string">"Johnny"</span>, <span class="number">21</span>);
<span class="kw-2">*</span>map.try_get_mut(<span class="string">"Johnny"</span>).unwrap() += <span class="number">1</span>;
<span class="macro">assert_eq!</span>(<span class="kw-2">*</span>map.get(<span class="string">"Johnny"</span>).unwrap(), <span class="number">22</span>);
<span class="kw">let </span>_result1_locking = map.get(<span class="string">"Johnny"</span>);
<span class="kw">let </span>result2 = map.try_get_mut(<span class="string">"Johnny"</span>);
<span class="macro">assert!</span>(result2.is_locked());</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="method.shrink_to_fit" class="method"><a class="src rightside" href="../src/dashmap/lib.rs.html#683-685">Source</a><h4 class="code-header">pub fn <a href="#method.shrink_to_fit" class="fn">shrink_to_fit</a>(&amp;self)</h4></section></summary><div class="docblock"><p>Remove excess capacity to reduce memory usage.</p>
<p><strong>Locking behaviour:</strong> May deadlock if called when holding any sort of reference into the map.</p>
<h5 id="examples-17"><a class="doc-anchor" href="#examples-17">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>dashmap::DashMap;
<span class="kw">use </span>dashmap::try_result::TryResult;
<span class="kw">let </span>map = DashMap::new();
map.insert(<span class="string">"Johnny"</span>, <span class="number">21</span>);
<span class="macro">assert!</span>(map.capacity() &gt; <span class="number">0</span>);
map.remove(<span class="string">"Johnny"</span>);
map.shrink_to_fit();
<span class="macro">assert_eq!</span>(map.capacity(), <span class="number">0</span>);</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="method.retain" class="method"><a class="src rightside" href="../src/dashmap/lib.rs.html#704-706">Source</a><h4 class="code-header">pub fn <a href="#method.retain" class="fn">retain</a>(&amp;self, f: impl <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;K</a>, <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;mut V</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.bool.html">bool</a>)</h4></section></summary><div class="docblock"><p>Retain elements that whose predicates return true
and discard elements whose predicates return false.</p>
<p><strong>Locking behaviour:</strong> May deadlock if called when holding any sort of reference into the map.</p>
<h5 id="examples-18"><a class="doc-anchor" href="#examples-18">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>dashmap::DashMap;
<span class="kw">let </span>people = DashMap::new();
people.insert(<span class="string">"Albin"</span>, <span class="number">15</span>);
people.insert(<span class="string">"Jones"</span>, <span class="number">22</span>);
people.insert(<span class="string">"Charlie"</span>, <span class="number">27</span>);
people.retain(|<span class="kw">_</span>, v| <span class="kw-2">*</span>v &gt; <span class="number">20</span>);
<span class="macro">assert_eq!</span>(people.len(), <span class="number">2</span>);</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="method.len" class="method"><a class="src rightside" href="../src/dashmap/lib.rs.html#723-725">Source</a><h4 class="code-header">pub fn <a href="#method.len" class="fn">len</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.usize.html">usize</a></h4></section></summary><div class="docblock"><p>Fetches the total number of key-value pairs stored in the map.</p>
<p><strong>Locking behaviour:</strong> May deadlock if called when holding a mutable reference into the map.</p>
<h5 id="examples-19"><a class="doc-anchor" href="#examples-19">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>dashmap::DashMap;
<span class="kw">let </span>people = DashMap::new();
people.insert(<span class="string">"Albin"</span>, <span class="number">15</span>);
people.insert(<span class="string">"Jones"</span>, <span class="number">22</span>);
people.insert(<span class="string">"Charlie"</span>, <span class="number">27</span>);
<span class="macro">assert_eq!</span>(people.len(), <span class="number">3</span>);</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="method.is_empty" class="method"><a class="src rightside" href="../src/dashmap/lib.rs.html#739-741">Source</a><h4 class="code-header">pub fn <a href="#method.is_empty" class="fn">is_empty</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Checks if the map is empty or not.</p>
<p><strong>Locking behaviour:</strong> May deadlock if called when holding a mutable reference into the map.</p>
<h5 id="examples-20"><a class="doc-anchor" href="#examples-20">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>dashmap::DashMap;
<span class="kw">let </span>map = DashMap::&lt;(), ()&gt;::new();
<span class="macro">assert!</span>(map.is_empty());</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="method.clear" class="method"><a class="src rightside" href="../src/dashmap/lib.rs.html#758-760">Source</a><h4 class="code-header">pub fn <a href="#method.clear" class="fn">clear</a>(&amp;self)</h4></section></summary><div class="docblock"><p>Removes all key-value pairs in the map.</p>
<p><strong>Locking behaviour:</strong> May deadlock if called when holding any sort of reference into the map.</p>
<h5 id="examples-21"><a class="doc-anchor" href="#examples-21">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>dashmap::DashMap;
<span class="kw">let </span>stats = DashMap::new();
stats.insert(<span class="string">"Goals"</span>, <span class="number">4</span>);
<span class="macro">assert!</span>(!stats.is_empty());
stats.clear();
<span class="macro">assert!</span>(stats.is_empty());</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="method.capacity" class="method"><a class="src rightside" href="../src/dashmap/lib.rs.html#765-767">Source</a><h4 class="code-header">pub fn <a href="#method.capacity" class="fn">capacity</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.usize.html">usize</a></h4></section></summary><div class="docblock"><p>Returns how many key-value pairs the map can store without reallocating.</p>
<p><strong>Locking behaviour:</strong> May deadlock if called when holding a mutable reference into the map.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.alter" class="method"><a class="src rightside" href="../src/dashmap/lib.rs.html#787-793">Source</a><h4 class="code-header">pub fn <a href="#method.alter" class="fn">alter</a>&lt;Q&gt;(&amp;self, key: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;Q</a>, f: impl <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;K</a>, V) -&gt; V)<div class="where">where
K: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;Q&gt;,
Q: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class="docblock"><p>Modify a specific value according to a function.</p>
<p><strong>Locking behaviour:</strong> May deadlock if called when holding any sort of reference into the map.</p>
<h5 id="examples-22"><a class="doc-anchor" href="#examples-22">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>dashmap::DashMap;
<span class="kw">let </span>stats = DashMap::new();
stats.insert(<span class="string">"Goals"</span>, <span class="number">4</span>);
stats.alter(<span class="string">"Goals"</span>, |<span class="kw">_</span>, v| v * <span class="number">2</span>);
<span class="macro">assert_eq!</span>(<span class="kw-2">*</span>stats.get(<span class="string">"Goals"</span>).unwrap(), <span class="number">8</span>);</code></pre></div><h5 id="panics"><a class="doc-anchor" href="#panics">§</a>Panics</h5>
<p>If the given closure panics, then <code>alter</code> will abort the process</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.alter_all" class="method"><a class="src rightside" href="../src/dashmap/lib.rs.html#815-817">Source</a><h4 class="code-header">pub fn <a href="#method.alter_all" class="fn">alter_all</a>(&amp;self, f: impl <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;K</a>, V) -&gt; V)</h4></section></summary><div class="docblock"><p>Modify every value in the map according to a function.</p>
<p><strong>Locking behaviour:</strong> May deadlock if called when holding any sort of reference into the map.</p>
<h5 id="examples-23"><a class="doc-anchor" href="#examples-23">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>dashmap::DashMap;
<span class="kw">let </span>stats = DashMap::new();
stats.insert(<span class="string">"Wins"</span>, <span class="number">4</span>);
stats.insert(<span class="string">"Losses"</span>, <span class="number">2</span>);
stats.alter_all(|<span class="kw">_</span>, v| v + <span class="number">1</span>);
<span class="macro">assert_eq!</span>(<span class="kw-2">*</span>stats.get(<span class="string">"Wins"</span>).unwrap(), <span class="number">5</span>);
<span class="macro">assert_eq!</span>(<span class="kw-2">*</span>stats.get(<span class="string">"Losses"</span>).unwrap(), <span class="number">3</span>);</code></pre></div><h5 id="panics-1"><a class="doc-anchor" href="#panics-1">§</a>Panics</h5>
<p>If the given closure panics, then <code>alter_all</code> will abort the process</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.view" class="method"><a class="src rightside" href="../src/dashmap/lib.rs.html#838-844">Source</a><h4 class="code-header">pub fn <a href="#method.view" class="fn">view</a>&lt;Q, R&gt;(&amp;self, key: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;Q</a>, f: impl <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;K</a>, <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;V</a>) -&gt; R) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;R&gt;<div class="where">where
K: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;Q&gt;,
Q: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class="docblock"><p>Scoped access into an item of the map according to a function.</p>
<p><strong>Locking behaviour:</strong> May deadlock if called when holding any sort of reference into the map.</p>
<h5 id="examples-24"><a class="doc-anchor" href="#examples-24">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>dashmap::DashMap;
<span class="kw">let </span>warehouse = DashMap::new();
warehouse.insert(<span class="number">4267</span>, (<span class="string">"Banana"</span>, <span class="number">100</span>));
warehouse.insert(<span class="number">2359</span>, (<span class="string">"Pear"</span>, <span class="number">120</span>));
<span class="kw">let </span>fruit = warehouse.view(<span class="kw-2">&amp;</span><span class="number">4267</span>, |_k, v| <span class="kw-2">*</span>v);
<span class="macro">assert_eq!</span>(fruit, <span class="prelude-val">Some</span>((<span class="string">"Banana"</span>, <span class="number">100</span>)));</code></pre></div><h5 id="panics-2"><a class="doc-anchor" href="#panics-2">§</a>Panics</h5>
<p>If the given closure panics, then <code>view</code> will abort the process</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.contains_key" class="method"><a class="src rightside" href="../src/dashmap/lib.rs.html#859-865">Source</a><h4 class="code-header">pub fn <a href="#method.contains_key" class="fn">contains_key</a>&lt;Q&gt;(&amp;self, key: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;Q</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.bool.html">bool</a><div class="where">where
K: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;Q&gt;,
Q: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class="docblock"><p>Checks if the map contains a specific key.</p>
<p><strong>Locking behaviour:</strong> May deadlock if called when holding a mutable reference into the map.</p>
<h5 id="examples-25"><a class="doc-anchor" href="#examples-25">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>dashmap::DashMap;
<span class="kw">let </span>team_sizes = DashMap::new();
team_sizes.insert(<span class="string">"Dakota Cherries"</span>, <span class="number">23</span>);
<span class="macro">assert!</span>(team_sizes.contains_key(<span class="string">"Dakota Cherries"</span>));</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="method.entry" class="method"><a class="src rightside" href="../src/dashmap/lib.rs.html#871-873">Source</a><h4 class="code-header">pub fn <a href="#method.entry" class="fn">entry</a>(&amp;'a self, key: K) -&gt; <a class="enum" href="mapref/entry/enum.Entry.html" title="enum dashmap::mapref::entry::Entry">Entry</a>&lt;'a, K, V&gt;</h4></section></summary><div class="docblock"><p>Advanced entry API that tries to mimic <code>std::collections::HashMap</code>.
See the documentation on <code>dashmap::mapref::entry</code> for more details.</p>
<p><strong>Locking behaviour:</strong> May deadlock if called when holding any sort of reference into the map.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.try_entry" class="method"><a class="src rightside" href="../src/dashmap/lib.rs.html#879-881">Source</a><h4 class="code-header">pub fn <a href="#method.try_entry" class="fn">try_entry</a>(&amp;'a self, key: K) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="enum" href="mapref/entry/enum.Entry.html" title="enum dashmap::mapref::entry::Entry">Entry</a>&lt;'a, K, V&gt;&gt;</h4></section></summary><div class="docblock"><p>Advanced entry API that tries to mimic <code>std::collections::HashMap</code>.
See the documentation on <code>dashmap::mapref::entry</code> for more details.</p>
<p>Returns None if the shard is currently locked.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.try_reserve" class="method"><a class="src rightside" href="../src/dashmap/lib.rs.html#891-903">Source</a><h4 class="code-header">pub fn <a href="#method.try_reserve" class="fn">try_reserve</a>(&amp;mut self, additional: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.usize.html">usize</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.unit.html">()</a>, <a class="struct" href="struct.TryReserveError.html" title="struct dashmap::TryReserveError">TryReserveError</a>&gt;</h4></section></summary><div class="docblock"><p>Advanced entry API that tries to mimic <code>std::collections::HashMap::try_reserve</code>.
Tries to reserve capacity for at least <code>shard * additional</code>
and may reserve more space to avoid frequent reallocations.</p>
<h5 id="errors"><a class="doc-anchor" href="#errors">§</a>Errors</h5>
<p>If the capacity overflows, or the allocator reports a failure, then an error is returned.</p>
</div></details></div></details></div><h2 id="trait-implementations" class="section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-BitAnd%3C%26Q%3E-for-%26DashMap%3CK,+V,+S%3E" class="impl"><a class="src rightside" href="../src/dashmap/lib.rs.html#1299-1309">Source</a><a href="#impl-BitAnd%3C%26Q%3E-for-%26DashMap%3CK,+V,+S%3E" class="anchor">§</a><h3 class="code-header">impl&lt;'a, K, V: 'a, S: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/hash/trait.BuildHasher.html" title="trait core::hash::BuildHasher">BuildHasher</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, Q&gt; <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/ops/bit/trait.BitAnd.html" title="trait core::ops::bit::BitAnd">BitAnd</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;Q</a>&gt; for &amp;'a <a class="struct" href="struct.DashMap.html" title="struct dashmap::DashMap">DashMap</a>&lt;K, V, S&gt;<div class="where">where
K: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;Q&gt; + 'a + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a>,
Q: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Output-4" class="associatedtype trait-impl"><a class="src rightside" href="../src/dashmap/lib.rs.html#1304">Source</a><a href="#associatedtype.Output-4" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.93.1/core/ops/bit/trait.BitAnd.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>The resulting type after applying the <code>&amp;</code> operator.</div></details><details class="toggle method-toggle" open><summary><section id="method.bitand" class="method trait-impl"><a class="src rightside" href="../src/dashmap/lib.rs.html#1306-1308">Source</a><a href="#method.bitand" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/ops/bit/trait.BitAnd.html#tymethod.bitand" class="fn">bitand</a>(self, key: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;Q</a>) -&gt; Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.93.1/core/ops/bit/trait.BitAnd.html#associatedtype.Output" title="type core::ops::bit::BitAnd::Output">Output</a></h4></section></summary><div class='docblock'>Performs the <code>&amp;</code> operation. <a href="https://doc.rust-lang.org/1.93.1/core/ops/bit/trait.BitAnd.html#tymethod.bitand">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-BitOr%3C%26Q%3E-for-%26DashMap%3CK,+V,+S%3E" class="impl"><a class="src rightside" href="../src/dashmap/lib.rs.html#1275-1285">Source</a><a href="#impl-BitOr%3C%26Q%3E-for-%26DashMap%3CK,+V,+S%3E" class="anchor">§</a><h3 class="code-header">impl&lt;'a, K, V: 'a, S: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/hash/trait.BuildHasher.html" title="trait core::hash::BuildHasher">BuildHasher</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, Q&gt; <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/ops/bit/trait.BitOr.html" title="trait core::ops::bit::BitOr">BitOr</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;Q</a>&gt; for &amp;'a <a class="struct" href="struct.DashMap.html" title="struct dashmap::DashMap">DashMap</a>&lt;K, V, S&gt;<div class="where">where
K: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;Q&gt; + 'a + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a>,
Q: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Output-2" class="associatedtype trait-impl"><a class="src rightside" href="../src/dashmap/lib.rs.html#1280">Source</a><a href="#associatedtype.Output-2" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.93.1/core/ops/bit/trait.BitOr.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="mapref/one/struct.RefMut.html" title="struct dashmap::mapref::one::RefMut">RefMut</a>&lt;'a, K, V&gt;</h4></section></summary><div class='docblock'>The resulting type after applying the <code>|</code> operator.</div></details><details class="toggle method-toggle" open><summary><section id="method.bitor" class="method trait-impl"><a class="src rightside" href="../src/dashmap/lib.rs.html#1282-1284">Source</a><a href="#method.bitor" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/ops/bit/trait.BitOr.html#tymethod.bitor" class="fn">bitor</a>(self, key: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;Q</a>) -&gt; Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.93.1/core/ops/bit/trait.BitOr.html#associatedtype.Output" title="type core::ops::bit::BitOr::Output">Output</a></h4></section></summary><div class='docblock'>Performs the <code>|</code> operation. <a href="https://doc.rust-lang.org/1.93.1/core/ops/bit/trait.BitOr.html#tymethod.bitor">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Clone-for-DashMap%3CK,+V,+S%3E" class="impl"><a class="src rightside" href="../src/dashmap/lib.rs.html#95-111">Source</a><a href="#impl-Clone-for-DashMap%3CK,+V,+S%3E" class="anchor">§</a><h3 class="code-header">impl&lt;K: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, V: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, S: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>&gt; <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="struct.DashMap.html" title="struct dashmap::DashMap">DashMap</a>&lt;K, V, S&gt;</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl"><a class="src rightside" href="../src/dashmap/lib.rs.html#96-110">Source</a><a href="#method.clone" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/clone/trait.Clone.html#tymethod.clone" class="fn">clone</a>(&amp;self) -&gt; Self</h4></section></summary><div class='docblock'>Returns a duplicate of the value. <a href="https://doc.rust-lang.org/1.93.1/core/clone/trait.Clone.html#tymethod.clone">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="https://doc.rust-lang.org/1.93.1/src/core/clone.rs.html#245-247">Source</a></span><a href="#method.clone_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/clone/trait.Clone.html#method.clone_from" class="fn">clone_from</a>(&amp;mut self, source: &amp;Self)</h4></section></summary><div class='docblock'>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.93.1/core/clone/trait.Clone.html#method.clone_from">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Debug-for-DashMap%3CK,+V,+S%3E" class="impl"><a class="src rightside" href="../src/dashmap/lib.rs.html#1239-1253">Source</a><a href="#impl-Debug-for-DashMap%3CK,+V,+S%3E" class="anchor">§</a><h3 class="code-header">impl&lt;K: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>, V: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>, S: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/hash/trait.BuildHasher.html" title="trait core::hash::BuildHasher">BuildHasher</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>&gt; <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.DashMap.html" title="struct dashmap::DashMap">DashMap</a>&lt;K, V, S&gt;</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl"><a class="src rightside" href="../src/dashmap/lib.rs.html#1242-1252">Source</a><a href="#method.fmt" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/fmt/trait.Debug.html#tymethod.fmt" class="fn">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/1.93.1/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="type" href="https://doc.rust-lang.org/1.93.1/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></section></summary><div class='docblock'>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.93.1/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Default-for-DashMap%3CK,+V,+S%3E" class="impl"><a class="src rightside" href="../src/dashmap/lib.rs.html#113-121">Source</a><a href="#impl-Default-for-DashMap%3CK,+V,+S%3E" class="anchor">§</a><h3 class="code-header">impl&lt;K, V, S&gt; <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/default/trait.Default.html" title="trait core::default::Default">Default</a> for <a class="struct" href="struct.DashMap.html" title="struct dashmap::DashMap">DashMap</a>&lt;K, V, S&gt;<div class="where">where
K: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a>,
S: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/default/trait.Default.html" title="trait core::default::Default">Default</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/hash/trait.BuildHasher.html" title="trait core::hash::BuildHasher">BuildHasher</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.default" class="method trait-impl"><a class="src rightside" href="../src/dashmap/lib.rs.html#118-120">Source</a><a href="#method.default" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/default/trait.Default.html#tymethod.default" class="fn">default</a>() -&gt; Self</h4></section></summary><div class='docblock'>Returns the “default value” for a type. <a href="https://doc.rust-lang.org/1.93.1/core/default/trait.Default.html#tymethod.default">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Extend%3C(K,+V)%3E-for-DashMap%3CK,+V,+S%3E" class="impl"><a class="src rightside" href="../src/dashmap/lib.rs.html#1331-1337">Source</a><a href="#impl-Extend%3C(K,+V)%3E-for-DashMap%3CK,+V,+S%3E" class="anchor">§</a><h3 class="code-header">impl&lt;K: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a>, V, S: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/hash/trait.BuildHasher.html" title="trait core::hash::BuildHasher">BuildHasher</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>&gt; <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/iter/traits/collect/trait.Extend.html" title="trait core::iter::traits::collect::Extend">Extend</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.tuple.html">(K, V)</a>&gt; for <a class="struct" href="struct.DashMap.html" title="struct dashmap::DashMap">DashMap</a>&lt;K, V, S&gt;</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.extend" class="method trait-impl"><a class="src rightside" href="../src/dashmap/lib.rs.html#1332-1336">Source</a><a href="#method.extend" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/iter/traits/collect/trait.Extend.html#tymethod.extend" class="fn">extend</a>&lt;I: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item = <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.tuple.html">(K, V)</a>&gt;&gt;(&amp;mut self, intoiter: I)</h4></section></summary><div class='docblock'>Extends a collection with the contents of an iterator. <a href="https://doc.rust-lang.org/1.93.1/core/iter/traits/collect/trait.Extend.html#tymethod.extend">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.extend_one" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/iter\traits/collect.rs.html#417">Source</a><a href="#method.extend_one" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/iter/traits/collect/trait.Extend.html#method.extend_one" class="fn">extend_one</a>(&amp;mut self, item: A)</h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>extend_one</code>)</span></div></span><div class='docblock'>Extends a collection with exactly one element.</div></details><details class="toggle method-toggle" open><summary><section id="method.extend_reserve" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/iter\traits/collect.rs.html#425">Source</a><a href="#method.extend_reserve" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/iter/traits/collect/trait.Extend.html#method.extend_reserve" class="fn">extend_reserve</a>(&amp;mut self, additional: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.usize.html">usize</a>)</h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>extend_one</code>)</span></div></span><div class='docblock'>Reserves capacity in a collection for the given number of additional elements. <a href="https://doc.rust-lang.org/1.93.1/core/iter/traits/collect/trait.Extend.html#method.extend_reserve">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-FromIterator%3C(K,+V)%3E-for-DashMap%3CK,+V,+S%3E" class="impl"><a class="src rightside" href="../src/dashmap/lib.rs.html#1339-1347">Source</a><a href="#impl-FromIterator%3C(K,+V)%3E-for-DashMap%3CK,+V,+S%3E" class="anchor">§</a><h3 class="code-header">impl&lt;K: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a>, V, S: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/hash/trait.BuildHasher.html" title="trait core::hash::BuildHasher">BuildHasher</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/default/trait.Default.html" title="trait core::default::Default">Default</a>&gt; <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/iter/traits/collect/trait.FromIterator.html" title="trait core::iter::traits::collect::FromIterator">FromIterator</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.tuple.html">(K, V)</a>&gt; for <a class="struct" href="struct.DashMap.html" title="struct dashmap::DashMap">DashMap</a>&lt;K, V, S&gt;</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from_iter" class="method trait-impl"><a class="src rightside" href="../src/dashmap/lib.rs.html#1340-1346">Source</a><a href="#method.from_iter" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/iter/traits/collect/trait.FromIterator.html#tymethod.from_iter" class="fn">from_iter</a>&lt;I: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item = <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.tuple.html">(K, V)</a>&gt;&gt;(intoiter: I) -&gt; Self</h4></section></summary><div class='docblock'>Creates a value from an iterator. <a href="https://doc.rust-lang.org/1.93.1/core/iter/traits/collect/trait.FromIterator.html#tymethod.from_iter">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-IntoIterator-for-%26DashMap%3CK,+V,+S%3E" class="impl"><a class="src rightside" href="../src/dashmap/lib.rs.html#1321-1329">Source</a><a href="#impl-IntoIterator-for-%26DashMap%3CK,+V,+S%3E" class="anchor">§</a><h3 class="code-header">impl&lt;'a, K: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a>, V, S: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/hash/trait.BuildHasher.html" title="trait core::hash::BuildHasher">BuildHasher</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>&gt; <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a> for &amp;'a <a class="struct" href="struct.DashMap.html" title="struct dashmap::DashMap">DashMap</a>&lt;K, V, S&gt;</h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Item-1" class="associatedtype trait-impl"><a class="src rightside" href="../src/dashmap/lib.rs.html#1322">Source</a><a href="#associatedtype.Item-1" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.93.1/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item" class="associatedtype">Item</a> = <a class="struct" href="mapref/multiple/struct.RefMulti.html" title="struct dashmap::mapref::multiple::RefMulti">RefMulti</a>&lt;'a, K, V&gt;</h4></section></summary><div class='docblock'>The type of the elements being iterated over.</div></details><details class="toggle" open><summary><section id="associatedtype.IntoIter-1" class="associatedtype trait-impl"><a class="src rightside" href="../src/dashmap/lib.rs.html#1324">Source</a><a href="#associatedtype.IntoIter-1" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.93.1/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter" class="associatedtype">IntoIter</a> = <a class="struct" href="iter/struct.Iter.html" title="struct dashmap::iter::Iter">Iter</a>&lt;'a, K, V, S&gt;</h4></section></summary><div class='docblock'>Which kind of iterator are we turning this into?</div></details><details class="toggle method-toggle" open><summary><section id="method.into_iter-1" class="method trait-impl"><a class="src rightside" href="../src/dashmap/lib.rs.html#1326-1328">Source</a><a href="#method.into_iter-1" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter" class="fn">into_iter</a>(self) -&gt; Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.93.1/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter" title="type core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a></h4></section></summary><div class='docblock'>Creates an iterator from a value. <a href="https://doc.rust-lang.org/1.93.1/core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-IntoIterator-for-DashMap%3CK,+V,+S%3E" class="impl"><a class="src rightside" href="../src/dashmap/lib.rs.html#1311-1319">Source</a><a href="#impl-IntoIterator-for-DashMap%3CK,+V,+S%3E" class="anchor">§</a><h3 class="code-header">impl&lt;K: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a>, V, S: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/hash/trait.BuildHasher.html" title="trait core::hash::BuildHasher">BuildHasher</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>&gt; <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a> for <a class="struct" href="struct.DashMap.html" title="struct dashmap::DashMap">DashMap</a>&lt;K, V, S&gt;</h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Item" class="associatedtype trait-impl"><a class="src rightside" href="../src/dashmap/lib.rs.html#1312">Source</a><a href="#associatedtype.Item" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.93.1/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item" class="associatedtype">Item</a> = <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.tuple.html">(K, V)</a></h4></section></summary><div class='docblock'>The type of the elements being iterated over.</div></details><details class="toggle" open><summary><section id="associatedtype.IntoIter" class="associatedtype trait-impl"><a class="src rightside" href="../src/dashmap/lib.rs.html#1314">Source</a><a href="#associatedtype.IntoIter" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.93.1/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter" class="associatedtype">IntoIter</a> = <a class="struct" href="iter/struct.OwningIter.html" title="struct dashmap::iter::OwningIter">OwningIter</a>&lt;K, V, S&gt;</h4></section></summary><div class='docblock'>Which kind of iterator are we turning this into?</div></details><details class="toggle method-toggle" open><summary><section id="method.into_iter" class="method trait-impl"><a class="src rightside" href="../src/dashmap/lib.rs.html#1316-1318">Source</a><a href="#method.into_iter" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter" class="fn">into_iter</a>(self) -&gt; Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.93.1/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter" title="type core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a></h4></section></summary><div class='docblock'>Creates an iterator from a value. <a href="https://doc.rust-lang.org/1.93.1/core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Map%3C'a,+K,+V,+S%3E-for-DashMap%3CK,+V,+S%3E" class="impl"><a class="src rightside" href="../src/dashmap/lib.rs.html#906-1237">Source</a><a href="#impl-Map%3C'a,+K,+V,+S%3E-for-DashMap%3CK,+V,+S%3E" class="anchor">§</a><h3 class="code-header">impl&lt;'a, K: 'a + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a>, V: 'a, S: 'a + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/hash/trait.BuildHasher.html" title="trait core::hash::BuildHasher">BuildHasher</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>&gt; <a class="trait" href="trait.Map.html" title="trait dashmap::Map">Map</a>&lt;'a, K, V, S&gt; for <a class="struct" href="struct.DashMap.html" title="struct dashmap::DashMap">DashMap</a>&lt;K, V, S&gt;</h3></section></summary><div class="impl-items"><section id="method._shard_count" class="method trait-impl"><a class="src rightside" href="../src/dashmap/lib.rs.html#909-911">Source</a><a href="#method._shard_count" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Map.html#tymethod._shard_count" class="fn">_shard_count</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.usize.html">usize</a></h4></section><details class="toggle method-toggle" open><summary><section id="method._get_read_shard" class="method trait-impl"><a class="src rightside" href="../src/dashmap/lib.rs.html#913-917">Source</a><a href="#method._get_read_shard" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="trait.Map.html#tymethod._get_read_shard" class="fn">_get_read_shard</a>(
&amp;'a self,
i: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.usize.html">usize</a>,
) -&gt; &amp;'a RawTable&lt;(K, SharedValue&lt;V&gt;)&gt;</h4></section></summary><div class='docblock'>Safety <a href="trait.Map.html#tymethod._get_read_shard">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method._yield_read_shard" class="method trait-impl"><a class="src rightside" href="../src/dashmap/lib.rs.html#919-923">Source</a><a href="#method._yield_read_shard" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="trait.Map.html#tymethod._yield_read_shard" class="fn">_yield_read_shard</a>(
&amp;'a self,
i: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.usize.html">usize</a>,
) -&gt; RwLockReadGuard&lt;'a, RawRwLock, RawTable&lt;(K, SharedValue&lt;V&gt;)&gt;&gt;</h4></section></summary><div class='docblock'>Safety <a href="trait.Map.html#tymethod._yield_read_shard">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method._yield_write_shard" class="method trait-impl"><a class="src rightside" href="../src/dashmap/lib.rs.html#925-929">Source</a><a href="#method._yield_write_shard" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="trait.Map.html#tymethod._yield_write_shard" class="fn">_yield_write_shard</a>(
&amp;'a self,
i: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.usize.html">usize</a>,
) -&gt; RwLockWriteGuard&lt;'a, RawRwLock, RawTable&lt;(K, SharedValue&lt;V&gt;)&gt;&gt;</h4></section></summary><div class='docblock'>Safety <a href="trait.Map.html#tymethod._yield_write_shard">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method._try_yield_read_shard" class="method trait-impl"><a class="src rightside" href="../src/dashmap/lib.rs.html#931-938">Source</a><a href="#method._try_yield_read_shard" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="trait.Map.html#tymethod._try_yield_read_shard" class="fn">_try_yield_read_shard</a>(
&amp;'a self,
i: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.usize.html">usize</a>,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;RwLockReadGuard&lt;'a, RawRwLock, RawTable&lt;(K, SharedValue&lt;V&gt;)&gt;&gt;&gt;</h4></section></summary><div class='docblock'>Safety <a href="trait.Map.html#tymethod._try_yield_read_shard">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method._try_yield_write_shard" class="method trait-impl"><a class="src rightside" href="../src/dashmap/lib.rs.html#940-947">Source</a><a href="#method._try_yield_write_shard" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="trait.Map.html#tymethod._try_yield_write_shard" class="fn">_try_yield_write_shard</a>(
&amp;'a self,
i: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.usize.html">usize</a>,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;RwLockWriteGuard&lt;'a, RawRwLock, RawTable&lt;(K, SharedValue&lt;V&gt;)&gt;&gt;&gt;</h4></section></summary><div class='docblock'>Safety <a href="trait.Map.html#tymethod._try_yield_write_shard">Read more</a></div></details><section id="method._insert" class="method trait-impl"><a class="src rightside" href="../src/dashmap/lib.rs.html#949-957">Source</a><a href="#method._insert" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Map.html#tymethod._insert" class="fn">_insert</a>(&amp;self, key: K, value: V) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;V&gt;</h4></section><section id="method._remove" class="method trait-impl"><a class="src rightside" href="../src/dashmap/lib.rs.html#959-976">Source</a><a href="#method._remove" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Map.html#tymethod._remove" class="fn">_remove</a>&lt;Q&gt;(&amp;self, key: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;Q</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.tuple.html">(K, V)</a>&gt;<div class="where">where
K: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;Q&gt;,
Q: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section><section id="method._remove_if" class="method trait-impl"><a class="src rightside" href="../src/dashmap/lib.rs.html#978-1000">Source</a><a href="#method._remove_if" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Map.html#tymethod._remove_if" class="fn">_remove_if</a>&lt;Q&gt;(
&amp;self,
key: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;Q</a>,
f: impl <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;K</a>, <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;V</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.bool.html">bool</a>,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.tuple.html">(K, V)</a>&gt;<div class="where">where
K: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;Q&gt;,
Q: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section><section id="method._remove_if_mut" class="method trait-impl"><a class="src rightside" href="../src/dashmap/lib.rs.html#1002-1024">Source</a><a href="#method._remove_if_mut" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Map.html#tymethod._remove_if_mut" class="fn">_remove_if_mut</a>&lt;Q&gt;(
&amp;self,
key: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;Q</a>,
f: impl <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;K</a>, <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;mut V</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.bool.html">bool</a>,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.tuple.html">(K, V)</a>&gt;<div class="where">where
K: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;Q&gt;,
Q: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section><section id="method._iter" class="method trait-impl"><a class="src rightside" href="../src/dashmap/lib.rs.html#1026-1028">Source</a><a href="#method._iter" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Map.html#tymethod._iter" class="fn">_iter</a>(&amp;'a self) -&gt; <a class="struct" href="iter/struct.Iter.html" title="struct dashmap::iter::Iter">Iter</a>&lt;'a, K, V, S, <a class="struct" href="struct.DashMap.html" title="struct dashmap::DashMap">DashMap</a>&lt;K, V, S&gt;&gt; <a href="#" class="tooltip" data-notable-ty="Iter&lt;&#39;a, K, V, S, DashMap&lt;K, V, S&gt;&gt;"></a></h4></section><section id="method._iter_mut" class="method trait-impl"><a class="src rightside" href="../src/dashmap/lib.rs.html#1030-1032">Source</a><a href="#method._iter_mut" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Map.html#tymethod._iter_mut" class="fn">_iter_mut</a>(&amp;'a self) -&gt; <a class="struct" href="iter/struct.IterMut.html" title="struct dashmap::iter::IterMut">IterMut</a>&lt;'a, K, V, S, <a class="struct" href="struct.DashMap.html" title="struct dashmap::DashMap">DashMap</a>&lt;K, V, S&gt;&gt; <a href="#" class="tooltip" data-notable-ty="IterMut&lt;&#39;a, K, V, S, DashMap&lt;K, V, S&gt;&gt;"></a></h4></section><section id="method._get" class="method trait-impl"><a class="src rightside" href="../src/dashmap/lib.rs.html#1034-1053">Source</a><a href="#method._get" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Map.html#tymethod._get" class="fn">_get</a>&lt;Q&gt;(&amp;'a self, key: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;Q</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="mapref/one/struct.Ref.html" title="struct dashmap::mapref::one::Ref">Ref</a>&lt;'a, K, V&gt;&gt;<div class="where">where
K: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;Q&gt;,
Q: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section><section id="method._get_mut" class="method trait-impl"><a class="src rightside" href="../src/dashmap/lib.rs.html#1055-1074">Source</a><a href="#method._get_mut" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Map.html#tymethod._get_mut" class="fn">_get_mut</a>&lt;Q&gt;(&amp;'a self, key: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;Q</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="mapref/one/struct.RefMut.html" title="struct dashmap::mapref::one::RefMut">RefMut</a>&lt;'a, K, V&gt;&gt;<div class="where">where
K: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;Q&gt;,
Q: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section><section id="method._try_get" class="method trait-impl"><a class="src rightside" href="../src/dashmap/lib.rs.html#1076-1098">Source</a><a href="#method._try_get" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Map.html#tymethod._try_get" class="fn">_try_get</a>&lt;Q&gt;(&amp;'a self, key: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;Q</a>) -&gt; <a class="enum" href="try_result/enum.TryResult.html" title="enum dashmap::try_result::TryResult">TryResult</a>&lt;<a class="struct" href="mapref/one/struct.Ref.html" title="struct dashmap::mapref::one::Ref">Ref</a>&lt;'a, K, V&gt;&gt;<div class="where">where
K: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;Q&gt;,
Q: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section><section id="method._try_get_mut" class="method trait-impl"><a class="src rightside" href="../src/dashmap/lib.rs.html#1100-1122">Source</a><a href="#method._try_get_mut" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Map.html#tymethod._try_get_mut" class="fn">_try_get_mut</a>&lt;Q&gt;(&amp;'a self, key: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;Q</a>) -&gt; <a class="enum" href="try_result/enum.TryResult.html" title="enum dashmap::try_result::TryResult">TryResult</a>&lt;<a class="struct" href="mapref/one/struct.RefMut.html" title="struct dashmap::mapref::one::RefMut">RefMut</a>&lt;'a, K, V&gt;&gt;<div class="where">where
K: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;Q&gt;,
Q: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section><section id="method._shrink_to_fit" class="method trait-impl"><a class="src rightside" href="../src/dashmap/lib.rs.html#1124-1134">Source</a><a href="#method._shrink_to_fit" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Map.html#tymethod._shrink_to_fit" class="fn">_shrink_to_fit</a>(&amp;self)</h4></section><section id="method._retain" class="method trait-impl"><a class="src rightside" href="../src/dashmap/lib.rs.html#1136-1149">Source</a><a href="#method._retain" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Map.html#tymethod._retain" class="fn">_retain</a>(&amp;self, f: impl <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;K</a>, <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;mut V</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.bool.html">bool</a>)</h4></section><section id="method._len" class="method trait-impl"><a class="src rightside" href="../src/dashmap/lib.rs.html#1151-1153">Source</a><a href="#method._len" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Map.html#tymethod._len" class="fn">_len</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.usize.html">usize</a></h4></section><section id="method._capacity" class="method trait-impl"><a class="src rightside" href="../src/dashmap/lib.rs.html#1155-1157">Source</a><a href="#method._capacity" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Map.html#tymethod._capacity" class="fn">_capacity</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.usize.html">usize</a></h4></section><section id="method._alter" class="method trait-impl"><a class="src rightside" href="../src/dashmap/lib.rs.html#1159-1167">Source</a><a href="#method._alter" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Map.html#tymethod._alter" class="fn">_alter</a>&lt;Q&gt;(&amp;self, key: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;Q</a>, f: impl <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;K</a>, V) -&gt; V)<div class="where">where
K: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;Q&gt;,
Q: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section><section id="method._alter_all" class="method trait-impl"><a class="src rightside" href="../src/dashmap/lib.rs.html#1169-1172">Source</a><a href="#method._alter_all" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Map.html#tymethod._alter_all" class="fn">_alter_all</a>(&amp;self, f: impl <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;K</a>, V) -&gt; V)</h4></section><section id="method._view" class="method trait-impl"><a class="src rightside" href="../src/dashmap/lib.rs.html#1174-1183">Source</a><a href="#method._view" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Map.html#tymethod._view" class="fn">_view</a>&lt;Q, R&gt;(&amp;self, key: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;Q</a>, f: impl <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;K</a>, <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;V</a>) -&gt; R) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;R&gt;<div class="where">where
K: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;Q&gt;,
Q: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section><section id="method._entry" class="method trait-impl"><a class="src rightside" href="../src/dashmap/lib.rs.html#1185-1204">Source</a><a href="#method._entry" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Map.html#tymethod._entry" class="fn">_entry</a>(&amp;'a self, key: K) -&gt; <a class="enum" href="mapref/entry/enum.Entry.html" title="enum dashmap::mapref::entry::Entry">Entry</a>&lt;'a, K, V&gt;</h4></section><section id="method._try_entry" class="method trait-impl"><a class="src rightside" href="../src/dashmap/lib.rs.html#1206-1232">Source</a><a href="#method._try_entry" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Map.html#tymethod._try_entry" class="fn">_try_entry</a>(&amp;'a self, key: K) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="enum" href="mapref/entry/enum.Entry.html" title="enum dashmap::mapref::entry::Entry">Entry</a>&lt;'a, K, V&gt;&gt;</h4></section><section id="method._hasher" class="method trait-impl"><a class="src rightside" href="../src/dashmap/lib.rs.html#1234-1236">Source</a><a href="#method._hasher" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Map.html#tymethod._hasher" class="fn">_hasher</a>(&amp;self) -&gt; S</h4></section><section id="method._clear" class="method trait-impl"><a class="src rightside" href="../src/dashmap/t.rs.html#119-121">Source</a><a href="#method._clear" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Map.html#method._clear" class="fn">_clear</a>(&amp;self)</h4></section><section id="method._contains_key" class="method trait-impl"><a class="src rightside" href="../src/dashmap/t.rs.html#123-129">Source</a><a href="#method._contains_key" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Map.html#method._contains_key" class="fn">_contains_key</a>&lt;Q&gt;(&amp;'a self, key: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;Q</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.bool.html">bool</a><div class="where">where
K: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;Q&gt;,
Q: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section><section id="method._is_empty" class="method trait-impl"><a class="src rightside" href="../src/dashmap/t.rs.html#131-133">Source</a><a href="#method._is_empty" class="anchor">§</a><h4 class="code-header">fn <a href="trait.Map.html#method._is_empty" class="fn">_is_empty</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.bool.html">bool</a></h4></section></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Shl%3C(K,+V)%3E-for-%26DashMap%3CK,+V,+S%3E" class="impl"><a class="src rightside" href="../src/dashmap/lib.rs.html#1255-1261">Source</a><a href="#impl-Shl%3C(K,+V)%3E-for-%26DashMap%3CK,+V,+S%3E" class="anchor">§</a><h3 class="code-header">impl&lt;'a, K: 'a + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a>, V: 'a, S: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/hash/trait.BuildHasher.html" title="trait core::hash::BuildHasher">BuildHasher</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>&gt; <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/ops/bit/trait.Shl.html" title="trait core::ops::bit::Shl">Shl</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.tuple.html">(K, V)</a>&gt; for &amp;'a <a class="struct" href="struct.DashMap.html" title="struct dashmap::DashMap">DashMap</a>&lt;K, V, S&gt;</h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Output" class="associatedtype trait-impl"><a class="src rightside" href="../src/dashmap/lib.rs.html#1256">Source</a><a href="#associatedtype.Output" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.93.1/core/ops/bit/trait.Shl.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;V&gt;</h4></section></summary><div class='docblock'>The resulting type after applying the <code>&lt;&lt;</code> operator.</div></details><details class="toggle method-toggle" open><summary><section id="method.shl" class="method trait-impl"><a class="src rightside" href="../src/dashmap/lib.rs.html#1258-1260">Source</a><a href="#method.shl" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/ops/bit/trait.Shl.html#tymethod.shl" class="fn">shl</a>(self, pair: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.tuple.html">(K, V)</a>) -&gt; Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.93.1/core/ops/bit/trait.Shl.html#associatedtype.Output" title="type core::ops::bit::Shl::Output">Output</a></h4></section></summary><div class='docblock'>Performs the <code>&lt;&lt;</code> operation. <a href="https://doc.rust-lang.org/1.93.1/core/ops/bit/trait.Shl.html#tymethod.shl">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Shr%3C%26Q%3E-for-%26DashMap%3CK,+V,+S%3E" class="impl"><a class="src rightside" href="../src/dashmap/lib.rs.html#1263-1273">Source</a><a href="#impl-Shr%3C%26Q%3E-for-%26DashMap%3CK,+V,+S%3E" class="anchor">§</a><h3 class="code-header">impl&lt;'a, K, V: 'a, S: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/hash/trait.BuildHasher.html" title="trait core::hash::BuildHasher">BuildHasher</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, Q&gt; <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/ops/bit/trait.Shr.html" title="trait core::ops::bit::Shr">Shr</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;Q</a>&gt; for &amp;'a <a class="struct" href="struct.DashMap.html" title="struct dashmap::DashMap">DashMap</a>&lt;K, V, S&gt;<div class="where">where
K: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;Q&gt; + 'a + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a>,
Q: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Output-1" class="associatedtype trait-impl"><a class="src rightside" href="../src/dashmap/lib.rs.html#1268">Source</a><a href="#associatedtype.Output-1" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.93.1/core/ops/bit/trait.Shr.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="mapref/one/struct.Ref.html" title="struct dashmap::mapref::one::Ref">Ref</a>&lt;'a, K, V&gt;</h4></section></summary><div class='docblock'>The resulting type after applying the <code>&gt;&gt;</code> operator.</div></details><details class="toggle method-toggle" open><summary><section id="method.shr" class="method trait-impl"><a class="src rightside" href="../src/dashmap/lib.rs.html#1270-1272">Source</a><a href="#method.shr" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/ops/bit/trait.Shr.html#tymethod.shr" class="fn">shr</a>(self, key: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;Q</a>) -&gt; Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.93.1/core/ops/bit/trait.Shr.html#associatedtype.Output" title="type core::ops::bit::Shr::Output">Output</a></h4></section></summary><div class='docblock'>Performs the <code>&gt;&gt;</code> operation. <a href="https://doc.rust-lang.org/1.93.1/core/ops/bit/trait.Shr.html#tymethod.shr">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-Sub%3C%26Q%3E-for-%26DashMap%3CK,+V,+S%3E" class="impl"><a class="src rightside" href="../src/dashmap/lib.rs.html#1287-1297">Source</a><a href="#impl-Sub%3C%26Q%3E-for-%26DashMap%3CK,+V,+S%3E" class="anchor">§</a><h3 class="code-header">impl&lt;'a, K, V: 'a, S: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/hash/trait.BuildHasher.html" title="trait core::hash::BuildHasher">BuildHasher</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, Q&gt; <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/ops/arith/trait.Sub.html" title="trait core::ops::arith::Sub">Sub</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;Q</a>&gt; for &amp;'a <a class="struct" href="struct.DashMap.html" title="struct dashmap::DashMap">DashMap</a>&lt;K, V, S&gt;<div class="where">where
K: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;Q&gt; + 'a + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a>,
Q: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Output-3" class="associatedtype trait-impl"><a class="src rightside" href="../src/dashmap/lib.rs.html#1292">Source</a><a href="#associatedtype.Output-3" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.93.1/core/ops/arith/trait.Sub.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.tuple.html">(K, V)</a>&gt;</h4></section></summary><div class='docblock'>The resulting type after applying the <code>-</code> operator.</div></details><details class="toggle method-toggle" open><summary><section id="method.sub" class="method trait-impl"><a class="src rightside" href="../src/dashmap/lib.rs.html#1294-1296">Source</a><a href="#method.sub" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/ops/arith/trait.Sub.html#tymethod.sub" class="fn">sub</a>(self, key: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;Q</a>) -&gt; Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.93.1/core/ops/arith/trait.Sub.html#associatedtype.Output" title="type core::ops::arith::Sub::Output">Output</a></h4></section></summary><div class='docblock'>Performs the <code>-</code> operation. <a href="https://doc.rust-lang.org/1.93.1/core/ops/arith/trait.Sub.html#tymethod.sub">Read more</a></div></details></div></details></div><h2 id="synthetic-implementations" class="section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor">§</a></h2><div id="synthetic-implementations-list"><section id="impl-Freeze-for-DashMap%3CK,+V,+S%3E" class="impl"><a href="#impl-Freeze-for-DashMap%3CK,+V,+S%3E" class="anchor">§</a><h3 class="code-header">impl&lt;K, V, S&gt; <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a> for <a class="struct" href="struct.DashMap.html" title="struct dashmap::DashMap">DashMap</a>&lt;K, V, S&gt;<div class="where">where
S: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a>,</div></h3></section><section id="impl-RefUnwindSafe-for-DashMap%3CK,+V,+S%3E" class="impl"><a href="#impl-RefUnwindSafe-for-DashMap%3CK,+V,+S%3E" class="anchor">§</a><h3 class="code-header">impl&lt;K, V, S = <a class="struct" href="https://doc.rust-lang.org/1.93.1/std/hash/random/struct.RandomState.html" title="struct std::hash::random::RandomState">RandomState</a>&gt; !<a class="trait" href="https://doc.rust-lang.org/1.93.1/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="struct.DashMap.html" title="struct dashmap::DashMap">DashMap</a>&lt;K, V, S&gt;</h3></section><section id="impl-Send-for-DashMap%3CK,+V,+S%3E" class="impl"><a href="#impl-Send-for-DashMap%3CK,+V,+S%3E" class="anchor">§</a><h3 class="code-header">impl&lt;K, V, S&gt; <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="struct.DashMap.html" title="struct dashmap::DashMap">DashMap</a>&lt;K, V, S&gt;<div class="where">where
S: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,
K: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,
V: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,</div></h3></section><section id="impl-Sync-for-DashMap%3CK,+V,+S%3E" class="impl"><a href="#impl-Sync-for-DashMap%3CK,+V,+S%3E" class="anchor">§</a><h3 class="code-header">impl&lt;K, V, S&gt; <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="struct.DashMap.html" title="struct dashmap::DashMap">DashMap</a>&lt;K, V, S&gt;<div class="where">where
S: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,
K: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,
V: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,</div></h3></section><section id="impl-Unpin-for-DashMap%3CK,+V,+S%3E" class="impl"><a href="#impl-Unpin-for-DashMap%3CK,+V,+S%3E" class="anchor">§</a><h3 class="code-header">impl&lt;K, V, S&gt; <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="struct.DashMap.html" title="struct dashmap::DashMap">DashMap</a>&lt;K, V, S&gt;<div class="where">where
S: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,</div></h3></section><section id="impl-UnwindSafe-for-DashMap%3CK,+V,+S%3E" class="impl"><a href="#impl-UnwindSafe-for-DashMap%3CK,+V,+S%3E" class="anchor">§</a><h3 class="code-header">impl&lt;K, V, S&gt; <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="struct" href="struct.DashMap.html" title="struct dashmap::DashMap">DashMap</a>&lt;K, V, S&gt;<div class="where">where
S: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>,
K: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>,
V: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>,</div></h3></section></div><h2 id="blanket-implementations" class="section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor">§</a></h2><div id="blanket-implementations-list"><details class="toggle implementors-toggle"><summary><section id="impl-Any-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/any.rs.html#138">Source</a><a href="#impl-Any-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T<div class="where">where
T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/any.rs.html#139">Source</a><a href="#method.type_id" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/any/trait.Any.html#tymethod.type_id" class="fn">type_id</a>(&amp;self) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.93.1/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4></section></summary><div class='docblock'>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/1.93.1/core/any/trait.Any.html#tymethod.type_id">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Borrow%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/borrow.rs.html#212">Source</a><a href="#impl-Borrow%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;T&gt; for T<div class="where">where
T: ?<a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/borrow.rs.html#214">Source</a><a href="#method.borrow" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/borrow/trait.Borrow.html#tymethod.borrow" class="fn">borrow</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;T</a></h4></section></summary><div class='docblock'>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.93.1/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-BorrowMut%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/borrow.rs.html#221">Source</a><a href="#impl-BorrowMut%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt; for T<div class="where">where
T: ?<a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow_mut" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/borrow.rs.html#222">Source</a><a href="#method.borrow_mut" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fn">borrow_mut</a>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;mut T</a></h4></section></summary><div class='docblock'>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.93.1/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-CloneToUninit-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/clone.rs.html#547">Source</a><a href="#impl-CloneToUninit-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/clone/trait.CloneToUninit.html" title="trait core::clone::CloneToUninit">CloneToUninit</a> for T<div class="where">where
T: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.clone_to_uninit" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/clone.rs.html#549">Source</a><a href="#method.clone_to_uninit" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="https://doc.rust-lang.org/1.93.1/core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit" class="fn">clone_to_uninit</a>(&amp;self, dest: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.pointer.html">*mut </a><a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.u8.html">u8</a>)</h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>clone_to_uninit</code>)</span></div></span><div class='docblock'>Performs copy-assignment from <code>self</code> to <code>dest</code>. <a href="https://doc.rust-lang.org/1.93.1/core/clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-From%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/convert/mod.rs.html#785">Source</a><a href="#impl-From%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt; for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/convert/mod.rs.html#788">Source</a><a href="#method.from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(t: T) -&gt; T</h4></section></summary><div class="docblock"><p>Returns the argument unchanged.</p>
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Into%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/convert/mod.rs.html#767-769">Source</a><a href="#impl-Into%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;U&gt; for T<div class="where">where
U: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/convert/mod.rs.html#777">Source</a><a href="#method.into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/convert/trait.Into.html#tymethod.into" class="fn">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><a href="https://doc.rust-lang.org/1.93.1/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt; for U</code> chooses to do.</p>
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ToOwned-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/alloc/borrow.rs.html#85-87">Source</a><a href="#impl-ToOwned-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.93.1/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a> for T<div class="where">where
T: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Owned" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/alloc/borrow.rs.html#89">Source</a><a href="#associatedtype.Owned" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.93.1/alloc/borrow/trait.ToOwned.html#associatedtype.Owned" class="associatedtype">Owned</a> = T</h4></section></summary><div class='docblock'>The resulting type after obtaining ownership.</div></details><details class="toggle method-toggle" open><summary><section id="method.to_owned" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/alloc/borrow.rs.html#90">Source</a><a href="#method.to_owned" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/alloc/borrow/trait.ToOwned.html#tymethod.to_owned" class="fn">to_owned</a>(&amp;self) -&gt; T</h4></section></summary><div class='docblock'>Creates owned data from borrowed data, usually by cloning. <a href="https://doc.rust-lang.org/1.93.1/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.clone_into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/alloc/borrow.rs.html#94">Source</a><a href="#method.clone_into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/alloc/borrow/trait.ToOwned.html#method.clone_into" class="fn">clone_into</a>(&amp;self, target: <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;mut T</a>)</h4></section></summary><div class='docblock'>Uses borrowed data to replace owned data, usually by cloning. <a href="https://doc.rust-lang.org/1.93.1/alloc/borrow/trait.ToOwned.html#method.clone_into">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryFrom%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/convert/mod.rs.html#827-829">Source</a><a href="#impl-TryFrom%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;U&gt; for T<div class="where">where
U: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error-1" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/convert/mod.rs.html#831">Source</a><a href="#associatedtype.Error-1" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.93.1/core/convert/trait.TryFrom.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="enum" href="https://doc.rust-lang.org/1.93.1/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_from" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/convert/mod.rs.html#834">Source</a><a href="#method.try_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/convert/trait.TryFrom.html#tymethod.try_from" class="fn">try_from</a>(value: U) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/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/1.93.1/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/1.93.1/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryInto%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/convert/mod.rs.html#811-813">Source</a><a href="#impl-TryInto%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a>&lt;U&gt; for T<div class="where">where
U: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error" class="associatedtype trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/convert/mod.rs.html#815">Source</a><a href="#associatedtype.Error" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.93.1/core/convert/trait.TryInto.html#associatedtype.Error" class="associatedtype">Error</a> = &lt;U as <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/1.93.1/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.93.1/src/core/convert/mod.rs.html#818">Source</a><a href="#method.try_into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.93.1/core/convert/trait.TryInto.html#tymethod.try_into" class="fn">try_into</a>(self) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.93.1/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/1.93.1/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/1.93.1/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details></div><script type="text/json" id="notable-traits-data">{"Iter<'a, K, V, S, DashMap<K, V, S>>":"<h3>Notable traits for <code><a class=\"struct\" href=\"iter/struct.Iter.html\" title=\"struct dashmap::iter::Iter\">Iter</a>&lt;'a, K, V, S, M&gt;</code></h3><pre><code><div class=\"where\">impl&lt;'a, K: <a class=\"trait\" href=\"https://doc.rust-lang.org/1.93.1/core/cmp/trait.Eq.html\" title=\"trait core::cmp::Eq\">Eq</a> + <a class=\"trait\" href=\"https://doc.rust-lang.org/1.93.1/core/hash/trait.Hash.html\" title=\"trait core::hash::Hash\">Hash</a>, V, S: 'a + <a class=\"trait\" href=\"https://doc.rust-lang.org/1.93.1/core/hash/trait.BuildHasher.html\" title=\"trait core::hash::BuildHasher\">BuildHasher</a> + <a class=\"trait\" href=\"https://doc.rust-lang.org/1.93.1/core/clone/trait.Clone.html\" title=\"trait core::clone::Clone\">Clone</a>, M: <a class=\"trait\" href=\"trait.Map.html\" title=\"trait dashmap::Map\">Map</a>&lt;'a, K, V, S&gt;&gt; <a class=\"trait\" href=\"https://doc.rust-lang.org/1.93.1/core/iter/traits/iterator/trait.Iterator.html\" title=\"trait core::iter::traits::iterator::Iterator\">Iterator</a> for <a class=\"struct\" href=\"iter/struct.Iter.html\" title=\"struct dashmap::iter::Iter\">Iter</a>&lt;'a, K, V, S, M&gt;</div><div class=\"where\"> type <a href=\"https://doc.rust-lang.org/1.93.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item\" class=\"associatedtype\">Item</a> = <a class=\"struct\" href=\"mapref/multiple/struct.RefMulti.html\" title=\"struct dashmap::mapref::multiple::RefMulti\">RefMulti</a>&lt;'a, K, V&gt;;</div>","IterMut<'a, K, V, S, DashMap<K, V, S>>":"<h3>Notable traits for <code><a class=\"struct\" href=\"iter/struct.IterMut.html\" title=\"struct dashmap::iter::IterMut\">IterMut</a>&lt;'a, K, V, S, M&gt;</code></h3><pre><code><div class=\"where\">impl&lt;'a, K: <a class=\"trait\" href=\"https://doc.rust-lang.org/1.93.1/core/cmp/trait.Eq.html\" title=\"trait core::cmp::Eq\">Eq</a> + <a class=\"trait\" href=\"https://doc.rust-lang.org/1.93.1/core/hash/trait.Hash.html\" title=\"trait core::hash::Hash\">Hash</a>, V, S: 'a + <a class=\"trait\" href=\"https://doc.rust-lang.org/1.93.1/core/hash/trait.BuildHasher.html\" title=\"trait core::hash::BuildHasher\">BuildHasher</a> + <a class=\"trait\" href=\"https://doc.rust-lang.org/1.93.1/core/clone/trait.Clone.html\" title=\"trait core::clone::Clone\">Clone</a>, M: <a class=\"trait\" href=\"trait.Map.html\" title=\"trait dashmap::Map\">Map</a>&lt;'a, K, V, S&gt;&gt; <a class=\"trait\" href=\"https://doc.rust-lang.org/1.93.1/core/iter/traits/iterator/trait.Iterator.html\" title=\"trait core::iter::traits::iterator::Iterator\">Iterator</a> for <a class=\"struct\" href=\"iter/struct.IterMut.html\" title=\"struct dashmap::iter::IterMut\">IterMut</a>&lt;'a, K, V, S, M&gt;</div><div class=\"where\"> type <a href=\"https://doc.rust-lang.org/1.93.1/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item\" class=\"associatedtype\">Item</a> = <a class=\"struct\" href=\"mapref/multiple/struct.RefMutMulti.html\" title=\"struct dashmap::mapref::multiple::RefMutMulti\">RefMutMulti</a>&lt;'a, K, V&gt;;</div>"}</script></section></div></main></body></html>