Files
phy/parking_lot/struct.RawRwLock.html
Orion Kindel 0ce894e6b0 doc
2025-03-18 10:30:23 -05:00

19 lines
52 KiB
HTML

<!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="Raw reader-writer lock type backed by the parking lot."><title>RawRwLock in parking_lot - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Regular-0fe48ade.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" crossorigin href="../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../static.files/rustdoc-42caa33d.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="parking_lot" data-themes="" data-resource-suffix="" data-rustdoc-version="1.84.0 (9fc6b4312 2025-01-07)" data-channel="1.84.0" data-search-js="search-92e6798f.js" data-settings-js="settings-0f613d39.js" ><script src="../static.files/storage-59e33391.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-5f194d8c.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-893ab5e7.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-6580c154.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]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../parking_lot/index.html">parking_<wbr>lot</a><span class="version">0.12.3</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">RawRw<wbr>Lock</a></h2><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block trait-implementation"><li><a href="#impl-RawRwLock-for-RawRwLock" title="RawRwLock">RawRwLock</a></li><li><a href="#impl-RawRwLockDowngrade-for-RawRwLock" title="RawRwLockDowngrade">RawRwLockDowngrade</a></li><li><a href="#impl-RawRwLockFair-for-RawRwLock" title="RawRwLockFair">RawRwLockFair</a></li><li><a href="#impl-RawRwLockRecursive-for-RawRwLock" title="RawRwLockRecursive">RawRwLockRecursive</a></li><li><a href="#impl-RawRwLockRecursiveTimed-for-RawRwLock" title="RawRwLockRecursiveTimed">RawRwLockRecursiveTimed</a></li><li><a href="#impl-RawRwLockTimed-for-RawRwLock" title="RawRwLockTimed">RawRwLockTimed</a></li><li><a href="#impl-RawRwLockUpgrade-for-RawRwLock" title="RawRwLockUpgrade">RawRwLockUpgrade</a></li><li><a href="#impl-RawRwLockUpgradeDowngrade-for-RawRwLock" title="RawRwLockUpgradeDowngrade">RawRwLockUpgradeDowngrade</a></li><li><a href="#impl-RawRwLockUpgradeFair-for-RawRwLock" title="RawRwLockUpgradeFair">RawRwLockUpgradeFair</a></li><li><a href="#impl-RawRwLockUpgradeTimed-for-RawRwLock" title="RawRwLockUpgradeTimed">RawRwLockUpgradeTimed</a></li></ul><h3><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul class="block synthetic-implementation"><li><a href="#impl-Freeze-for-RawRwLock" title="!Freeze">!Freeze</a></li><li><a href="#impl-RefUnwindSafe-for-RawRwLock" title="RefUnwindSafe">RefUnwindSafe</a></li><li><a href="#impl-Send-for-RawRwLock" title="Send">Send</a></li><li><a href="#impl-Sync-for-RawRwLock" title="Sync">Sync</a></li><li><a href="#impl-Unpin-for-RawRwLock" title="Unpin">Unpin</a></li><li><a href="#impl-UnwindSafe-for-RawRwLock" 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-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-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 parking_<wbr>lot</a></h2></div></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><span class="rustdoc-breadcrumbs"><a href="index.html">parking_lot</a></span><h1>Struct <span class="struct">RawRwLock</span><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/parking_lot/raw_rwlock.rs.html#55-57">Source</a> </span></div><pre class="rust item-decl"><code>pub struct RawRwLock { <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>Raw reader-writer lock type backed by the parking lot.</p>
</div></details><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-RawRwLock-for-RawRwLock" class="impl"><a class="src rightside" href="../src/parking_lot/raw_rwlock.rs.html#59-152">Source</a><a href="#impl-RawRwLock-for-RawRwLock" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../lock_api/rwlock/trait.RawRwLock.html" title="trait lock_api::rwlock::RawRwLock">RawRwLock</a> for <a class="struct" href="struct.RawRwLock.html" title="struct parking_lot::RawRwLock">RawRwLock</a></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedconstant.INIT" class="associatedconstant trait-impl"><a class="src rightside" href="../src/parking_lot/raw_rwlock.rs.html#60-62">Source</a><a href="#associatedconstant.INIT" class="anchor">§</a><h4 class="code-header">const <a href="../lock_api/rwlock/trait.RawRwLock.html#associatedconstant.INIT" class="constant">INIT</a>: <a class="struct" href="struct.RawRwLock.html" title="struct parking_lot::RawRwLock">RawRwLock</a> = _</h4></section></summary><div class='docblock'>Initial value for an unlocked <code>RwLock</code>.</div></details><details class="toggle" open><summary><section id="associatedtype.GuardMarker" class="associatedtype trait-impl"><a class="src rightside" href="../src/parking_lot/raw_rwlock.rs.html#64">Source</a><a href="#associatedtype.GuardMarker" class="anchor">§</a><h4 class="code-header">type <a href="../lock_api/rwlock/trait.RawRwLock.html#associatedtype.GuardMarker" class="associatedtype">GuardMarker</a> = <a class="struct" href="../lock_api/struct.GuardSend.html" title="struct lock_api::GuardSend">GuardSend</a></h4></section></summary><div class='docblock'>Marker type which determines whether a lock guard should be <code>Send</code>. Use
one of the <code>GuardSend</code> or <code>GuardNoSend</code> helper types here.</div></details><details class="toggle method-toggle" open><summary><section id="method.lock_exclusive" class="method trait-impl"><a class="src rightside" href="../src/parking_lot/raw_rwlock.rs.html#67-77">Source</a><a href="#method.lock_exclusive" class="anchor">§</a><h4 class="code-header">fn <a href="../lock_api/rwlock/trait.RawRwLock.html#tymethod.lock_exclusive" class="fn">lock_exclusive</a>(&amp;self)</h4></section></summary><div class='docblock'>Acquires an exclusive lock, blocking the current thread until it is able to do so.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_lock_exclusive" class="method trait-impl"><a class="src rightside" href="../src/parking_lot/raw_rwlock.rs.html#80-91">Source</a><a href="#method.try_lock_exclusive" class="anchor">§</a><h4 class="code-header">fn <a href="../lock_api/rwlock/trait.RawRwLock.html#tymethod.try_lock_exclusive" class="fn">try_lock_exclusive</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Attempts to acquire an exclusive lock without blocking.</div></details><details class="toggle method-toggle" open><summary><section id="method.unlock_exclusive" class="method trait-impl"><a class="src rightside" href="../src/parking_lot/raw_rwlock.rs.html#94-104">Source</a><a href="#method.unlock_exclusive" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="../lock_api/rwlock/trait.RawRwLock.html#tymethod.unlock_exclusive" class="fn">unlock_exclusive</a>(&amp;self)</h4></section></summary><div class='docblock'>Releases an exclusive lock. <a href="../lock_api/rwlock/trait.RawRwLock.html#tymethod.unlock_exclusive">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.lock_shared" class="method trait-impl"><a class="src rightside" href="../src/parking_lot/raw_rwlock.rs.html#107-113">Source</a><a href="#method.lock_shared" class="anchor">§</a><h4 class="code-header">fn <a href="../lock_api/rwlock/trait.RawRwLock.html#tymethod.lock_shared" class="fn">lock_shared</a>(&amp;self)</h4></section></summary><div class='docblock'>Acquires a shared lock, blocking the current thread until it is able to do so.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_lock_shared" class="method trait-impl"><a class="src rightside" href="../src/parking_lot/raw_rwlock.rs.html#116-126">Source</a><a href="#method.try_lock_shared" class="anchor">§</a><h4 class="code-header">fn <a href="../lock_api/rwlock/trait.RawRwLock.html#tymethod.try_lock_shared" class="fn">try_lock_shared</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Attempts to acquire a shared lock without blocking.</div></details><details class="toggle method-toggle" open><summary><section id="method.unlock_shared" class="method trait-impl"><a class="src rightside" href="../src/parking_lot/raw_rwlock.rs.html#129-139">Source</a><a href="#method.unlock_shared" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="../lock_api/rwlock/trait.RawRwLock.html#tymethod.unlock_shared" class="fn">unlock_shared</a>(&amp;self)</h4></section></summary><div class='docblock'>Releases a shared lock. <a href="../lock_api/rwlock/trait.RawRwLock.html#tymethod.unlock_shared">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.is_locked" class="method trait-impl"><a class="src rightside" href="../src/parking_lot/raw_rwlock.rs.html#142-145">Source</a><a href="#method.is_locked" class="anchor">§</a><h4 class="code-header">fn <a href="../lock_api/rwlock/trait.RawRwLock.html#method.is_locked" class="fn">is_locked</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Checks if this <code>RwLock</code> is currently locked in any way.</div></details><details class="toggle method-toggle" open><summary><section id="method.is_locked_exclusive" class="method trait-impl"><a class="src rightside" href="../src/parking_lot/raw_rwlock.rs.html#148-151">Source</a><a href="#method.is_locked_exclusive" class="anchor">§</a><h4 class="code-header">fn <a href="../lock_api/rwlock/trait.RawRwLock.html#method.is_locked_exclusive" class="fn">is_locked_exclusive</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Check if this <code>RwLock</code> is currently exclusively locked.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-RawRwLockDowngrade-for-RawRwLock" class="impl"><a class="src rightside" href="../src/parking_lot/raw_rwlock.rs.html#191-203">Source</a><a href="#impl-RawRwLockDowngrade-for-RawRwLock" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../lock_api/rwlock/trait.RawRwLockDowngrade.html" title="trait lock_api::rwlock::RawRwLockDowngrade">RawRwLockDowngrade</a> for <a class="struct" href="struct.RawRwLock.html" title="struct parking_lot::RawRwLock">RawRwLock</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.downgrade" class="method trait-impl"><a class="src rightside" href="../src/parking_lot/raw_rwlock.rs.html#193-202">Source</a><a href="#method.downgrade" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="../lock_api/rwlock/trait.RawRwLockDowngrade.html#tymethod.downgrade" class="fn">downgrade</a>(&amp;self)</h4></section></summary><div class='docblock'>Atomically downgrades an exclusive lock into a shared lock without
allowing any thread to take an exclusive lock in the meantime. <a href="../lock_api/rwlock/trait.RawRwLockDowngrade.html#tymethod.downgrade">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-RawRwLockFair-for-RawRwLock" class="impl"><a class="src rightside" href="../src/parking_lot/raw_rwlock.rs.html#154-189">Source</a><a href="#impl-RawRwLockFair-for-RawRwLock" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../lock_api/rwlock/trait.RawRwLockFair.html" title="trait lock_api::rwlock::RawRwLockFair">RawRwLockFair</a> for <a class="struct" href="struct.RawRwLock.html" title="struct parking_lot::RawRwLock">RawRwLock</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.unlock_shared_fair" class="method trait-impl"><a class="src rightside" href="../src/parking_lot/raw_rwlock.rs.html#156-159">Source</a><a href="#method.unlock_shared_fair" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="../lock_api/rwlock/trait.RawRwLockFair.html#tymethod.unlock_shared_fair" class="fn">unlock_shared_fair</a>(&amp;self)</h4></section></summary><div class='docblock'>Releases a shared lock using a fair unlock protocol. <a href="../lock_api/rwlock/trait.RawRwLockFair.html#tymethod.unlock_shared_fair">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.unlock_exclusive_fair" class="method trait-impl"><a class="src rightside" href="../src/parking_lot/raw_rwlock.rs.html#162-172">Source</a><a href="#method.unlock_exclusive_fair" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="../lock_api/rwlock/trait.RawRwLockFair.html#tymethod.unlock_exclusive_fair" class="fn">unlock_exclusive_fair</a>(&amp;self)</h4></section></summary><div class='docblock'>Releases an exclusive lock using a fair unlock protocol. <a href="../lock_api/rwlock/trait.RawRwLockFair.html#tymethod.unlock_exclusive_fair">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.bump_shared" class="method trait-impl"><a class="src rightside" href="../src/parking_lot/raw_rwlock.rs.html#175-181">Source</a><a href="#method.bump_shared" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="../lock_api/rwlock/trait.RawRwLockFair.html#method.bump_shared" class="fn">bump_shared</a>(&amp;self)</h4></section></summary><div class='docblock'>Temporarily yields a shared lock to a waiting thread if there is one. <a href="../lock_api/rwlock/trait.RawRwLockFair.html#method.bump_shared">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.bump_exclusive" class="method trait-impl"><a class="src rightside" href="../src/parking_lot/raw_rwlock.rs.html#184-188">Source</a><a href="#method.bump_exclusive" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="../lock_api/rwlock/trait.RawRwLockFair.html#method.bump_exclusive" class="fn">bump_exclusive</a>(&amp;self)</h4></section></summary><div class='docblock'>Temporarily yields an exclusive lock to a waiting thread if there is one. <a href="../lock_api/rwlock/trait.RawRwLockFair.html#method.bump_exclusive">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-RawRwLockRecursive-for-RawRwLock" class="impl"><a class="src rightside" href="../src/parking_lot/raw_rwlock.rs.html#270-292">Source</a><a href="#impl-RawRwLockRecursive-for-RawRwLock" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../lock_api/rwlock/trait.RawRwLockRecursive.html" title="trait lock_api::rwlock::RawRwLockRecursive">RawRwLockRecursive</a> for <a class="struct" href="struct.RawRwLock.html" title="struct parking_lot::RawRwLock">RawRwLock</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.lock_shared_recursive" class="method trait-impl"><a class="src rightside" href="../src/parking_lot/raw_rwlock.rs.html#272-278">Source</a><a href="#method.lock_shared_recursive" class="anchor">§</a><h4 class="code-header">fn <a href="../lock_api/rwlock/trait.RawRwLockRecursive.html#tymethod.lock_shared_recursive" class="fn">lock_shared_recursive</a>(&amp;self)</h4></section></summary><div class='docblock'>Acquires a shared lock without deadlocking in case of a recursive lock.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_lock_shared_recursive" class="method trait-impl"><a class="src rightside" href="../src/parking_lot/raw_rwlock.rs.html#281-291">Source</a><a href="#method.try_lock_shared_recursive" class="anchor">§</a><h4 class="code-header">fn <a href="../lock_api/rwlock/trait.RawRwLockRecursive.html#tymethod.try_lock_shared_recursive" class="fn">try_lock_shared_recursive</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Attempts to acquire a shared lock without deadlocking in case of a recursive lock.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-RawRwLockRecursiveTimed-for-RawRwLock" class="impl"><a class="src rightside" href="../src/parking_lot/raw_rwlock.rs.html#294-320">Source</a><a href="#impl-RawRwLockRecursiveTimed-for-RawRwLock" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../lock_api/rwlock/trait.RawRwLockRecursiveTimed.html" title="trait lock_api::rwlock::RawRwLockRecursiveTimed">RawRwLockRecursiveTimed</a> for <a class="struct" href="struct.RawRwLock.html" title="struct parking_lot::RawRwLock">RawRwLock</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.try_lock_shared_recursive_for" class="method trait-impl"><a class="src rightside" href="../src/parking_lot/raw_rwlock.rs.html#296-306">Source</a><a href="#method.try_lock_shared_recursive_for" class="anchor">§</a><h4 class="code-header">fn <a href="../lock_api/rwlock/trait.RawRwLockRecursiveTimed.html#tymethod.try_lock_shared_recursive_for" class="fn">try_lock_shared_recursive_for</a>(&amp;self, timeout: Self::<a class="associatedtype" href="../lock_api/rwlock/trait.RawRwLockTimed.html#associatedtype.Duration" title="type lock_api::rwlock::RawRwLockTimed::Duration">Duration</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Attempts to acquire a shared lock until a timeout is reached, without
deadlocking in case of a recursive lock.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_lock_shared_recursive_until" class="method trait-impl"><a class="src rightside" href="../src/parking_lot/raw_rwlock.rs.html#309-319">Source</a><a href="#method.try_lock_shared_recursive_until" class="anchor">§</a><h4 class="code-header">fn <a href="../lock_api/rwlock/trait.RawRwLockRecursiveTimed.html#tymethod.try_lock_shared_recursive_until" class="fn">try_lock_shared_recursive_until</a>(&amp;self, timeout: Self::<a class="associatedtype" href="../lock_api/rwlock/trait.RawRwLockTimed.html#associatedtype.Instant" title="type lock_api::rwlock::RawRwLockTimed::Instant">Instant</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Attempts to acquire a shared lock until a timeout is reached, without
deadlocking in case of a recursive lock.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-RawRwLockTimed-for-RawRwLock" class="impl"><a class="src rightside" href="../src/parking_lot/raw_rwlock.rs.html#205-268">Source</a><a href="#impl-RawRwLockTimed-for-RawRwLock" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../lock_api/rwlock/trait.RawRwLockTimed.html" title="trait lock_api::rwlock::RawRwLockTimed">RawRwLockTimed</a> for <a class="struct" href="struct.RawRwLock.html" title="struct parking_lot::RawRwLock">RawRwLock</a></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Duration" class="associatedtype trait-impl"><a class="src rightside" href="../src/parking_lot/raw_rwlock.rs.html#206">Source</a><a href="#associatedtype.Duration" class="anchor">§</a><h4 class="code-header">type <a href="../lock_api/rwlock/trait.RawRwLockTimed.html#associatedtype.Duration" class="associatedtype">Duration</a> = <a class="struct" href="https://doc.rust-lang.org/1.84.0/core/time/struct.Duration.html" title="struct core::time::Duration">Duration</a></h4></section></summary><div class='docblock'>Duration type used for <code>try_lock_for</code>.</div></details><details class="toggle" open><summary><section id="associatedtype.Instant" class="associatedtype trait-impl"><a class="src rightside" href="../src/parking_lot/raw_rwlock.rs.html#207">Source</a><a href="#associatedtype.Instant" class="anchor">§</a><h4 class="code-header">type <a href="../lock_api/rwlock/trait.RawRwLockTimed.html#associatedtype.Instant" class="associatedtype">Instant</a> = <a class="struct" href="https://doc.rust-lang.org/1.84.0/std/time/struct.Instant.html" title="struct std::time::Instant">Instant</a></h4></section></summary><div class='docblock'>Instant type used for <code>try_lock_until</code>.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_lock_shared_for" class="method trait-impl"><a class="src rightside" href="../src/parking_lot/raw_rwlock.rs.html#210-220">Source</a><a href="#method.try_lock_shared_for" class="anchor">§</a><h4 class="code-header">fn <a href="../lock_api/rwlock/trait.RawRwLockTimed.html#tymethod.try_lock_shared_for" class="fn">try_lock_shared_for</a>(&amp;self, timeout: Self::<a class="associatedtype" href="../lock_api/rwlock/trait.RawRwLockTimed.html#associatedtype.Duration" title="type lock_api::rwlock::RawRwLockTimed::Duration">Duration</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Attempts to acquire a shared lock until a timeout is reached.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_lock_shared_until" class="method trait-impl"><a class="src rightside" href="../src/parking_lot/raw_rwlock.rs.html#223-233">Source</a><a href="#method.try_lock_shared_until" class="anchor">§</a><h4 class="code-header">fn <a href="../lock_api/rwlock/trait.RawRwLockTimed.html#tymethod.try_lock_shared_until" class="fn">try_lock_shared_until</a>(&amp;self, timeout: Self::<a class="associatedtype" href="../lock_api/rwlock/trait.RawRwLockTimed.html#associatedtype.Instant" title="type lock_api::rwlock::RawRwLockTimed::Instant">Instant</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Attempts to acquire a shared lock until a timeout is reached.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_lock_exclusive_for" class="method trait-impl"><a class="src rightside" href="../src/parking_lot/raw_rwlock.rs.html#236-250">Source</a><a href="#method.try_lock_exclusive_for" class="anchor">§</a><h4 class="code-header">fn <a href="../lock_api/rwlock/trait.RawRwLockTimed.html#tymethod.try_lock_exclusive_for" class="fn">try_lock_exclusive_for</a>(&amp;self, timeout: <a class="struct" href="https://doc.rust-lang.org/1.84.0/core/time/struct.Duration.html" title="struct core::time::Duration">Duration</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Attempts to acquire an exclusive lock until a timeout is reached.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_lock_exclusive_until" class="method trait-impl"><a class="src rightside" href="../src/parking_lot/raw_rwlock.rs.html#253-267">Source</a><a href="#method.try_lock_exclusive_until" class="anchor">§</a><h4 class="code-header">fn <a href="../lock_api/rwlock/trait.RawRwLockTimed.html#tymethod.try_lock_exclusive_until" class="fn">try_lock_exclusive_until</a>(&amp;self, timeout: <a class="struct" href="https://doc.rust-lang.org/1.84.0/std/time/struct.Instant.html" title="struct std::time::Instant">Instant</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Attempts to acquire an exclusive lock until a timeout is reached.</div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-RawRwLockUpgrade-for-RawRwLock" class="impl"><a class="src rightside" href="../src/parking_lot/raw_rwlock.rs.html#322-396">Source</a><a href="#impl-RawRwLockUpgrade-for-RawRwLock" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../lock_api/rwlock/trait.RawRwLockUpgrade.html" title="trait lock_api::rwlock::RawRwLockUpgrade">RawRwLockUpgrade</a> for <a class="struct" href="struct.RawRwLock.html" title="struct parking_lot::RawRwLock">RawRwLock</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.lock_upgradable" class="method trait-impl"><a class="src rightside" href="../src/parking_lot/raw_rwlock.rs.html#324-330">Source</a><a href="#method.lock_upgradable" class="anchor">§</a><h4 class="code-header">fn <a href="../lock_api/rwlock/trait.RawRwLockUpgrade.html#tymethod.lock_upgradable" class="fn">lock_upgradable</a>(&amp;self)</h4></section></summary><div class='docblock'>Acquires an upgradable lock, blocking the current thread until it is able to do so.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_lock_upgradable" class="method trait-impl"><a class="src rightside" href="../src/parking_lot/raw_rwlock.rs.html#333-343">Source</a><a href="#method.try_lock_upgradable" class="anchor">§</a><h4 class="code-header">fn <a href="../lock_api/rwlock/trait.RawRwLockUpgrade.html#tymethod.try_lock_upgradable" class="fn">try_lock_upgradable</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Attempts to acquire an upgradable lock without blocking.</div></details><details class="toggle method-toggle" open><summary><section id="method.unlock_upgradable" class="method trait-impl"><a class="src rightside" href="../src/parking_lot/raw_rwlock.rs.html#346-365">Source</a><a href="#method.unlock_upgradable" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="../lock_api/rwlock/trait.RawRwLockUpgrade.html#tymethod.unlock_upgradable" class="fn">unlock_upgradable</a>(&amp;self)</h4></section></summary><div class='docblock'>Releases an upgradable lock. <a href="../lock_api/rwlock/trait.RawRwLockUpgrade.html#tymethod.unlock_upgradable">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.upgrade" class="method trait-impl"><a class="src rightside" href="../src/parking_lot/raw_rwlock.rs.html#368-377">Source</a><a href="#method.upgrade" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="../lock_api/rwlock/trait.RawRwLockUpgrade.html#tymethod.upgrade" class="fn">upgrade</a>(&amp;self)</h4></section></summary><div class='docblock'>Upgrades an upgradable lock to an exclusive lock. <a href="../lock_api/rwlock/trait.RawRwLockUpgrade.html#tymethod.upgrade">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.try_upgrade" class="method trait-impl"><a class="src rightside" href="../src/parking_lot/raw_rwlock.rs.html#380-395">Source</a><a href="#method.try_upgrade" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="../lock_api/rwlock/trait.RawRwLockUpgrade.html#tymethod.try_upgrade" class="fn">try_upgrade</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Attempts to upgrade an upgradable lock to an exclusive lock without
blocking. <a href="../lock_api/rwlock/trait.RawRwLockUpgrade.html#tymethod.try_upgrade">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-RawRwLockUpgradeDowngrade-for-RawRwLock" class="impl"><a class="src rightside" href="../src/parking_lot/raw_rwlock.rs.html#429-452">Source</a><a href="#impl-RawRwLockUpgradeDowngrade-for-RawRwLock" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../lock_api/rwlock/trait.RawRwLockUpgradeDowngrade.html" title="trait lock_api::rwlock::RawRwLockUpgradeDowngrade">RawRwLockUpgradeDowngrade</a> for <a class="struct" href="struct.RawRwLock.html" title="struct parking_lot::RawRwLock">RawRwLock</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.downgrade_upgradable" class="method trait-impl"><a class="src rightside" href="../src/parking_lot/raw_rwlock.rs.html#431-438">Source</a><a href="#method.downgrade_upgradable" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="../lock_api/rwlock/trait.RawRwLockUpgradeDowngrade.html#tymethod.downgrade_upgradable" class="fn">downgrade_upgradable</a>(&amp;self)</h4></section></summary><div class='docblock'>Downgrades an upgradable lock to a shared lock. <a href="../lock_api/rwlock/trait.RawRwLockUpgradeDowngrade.html#tymethod.downgrade_upgradable">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.downgrade_to_upgradable" class="method trait-impl"><a class="src rightside" href="../src/parking_lot/raw_rwlock.rs.html#441-451">Source</a><a href="#method.downgrade_to_upgradable" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="../lock_api/rwlock/trait.RawRwLockUpgradeDowngrade.html#tymethod.downgrade_to_upgradable" class="fn">downgrade_to_upgradable</a>(&amp;self)</h4></section></summary><div class='docblock'>Downgrades an exclusive lock to an upgradable lock. <a href="../lock_api/rwlock/trait.RawRwLockUpgradeDowngrade.html#tymethod.downgrade_to_upgradable">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-RawRwLockUpgradeFair-for-RawRwLock" class="impl"><a class="src rightside" href="../src/parking_lot/raw_rwlock.rs.html#398-427">Source</a><a href="#impl-RawRwLockUpgradeFair-for-RawRwLock" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../lock_api/rwlock/trait.RawRwLockUpgradeFair.html" title="trait lock_api::rwlock::RawRwLockUpgradeFair">RawRwLockUpgradeFair</a> for <a class="struct" href="struct.RawRwLock.html" title="struct parking_lot::RawRwLock">RawRwLock</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.unlock_upgradable_fair" class="method trait-impl"><a class="src rightside" href="../src/parking_lot/raw_rwlock.rs.html#400-419">Source</a><a href="#method.unlock_upgradable_fair" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="../lock_api/rwlock/trait.RawRwLockUpgradeFair.html#tymethod.unlock_upgradable_fair" class="fn">unlock_upgradable_fair</a>(&amp;self)</h4></section></summary><div class='docblock'>Releases an upgradable lock using a fair unlock protocol. <a href="../lock_api/rwlock/trait.RawRwLockUpgradeFair.html#tymethod.unlock_upgradable_fair">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.bump_upgradable" class="method trait-impl"><a class="src rightside" href="../src/parking_lot/raw_rwlock.rs.html#422-426">Source</a><a href="#method.bump_upgradable" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="../lock_api/rwlock/trait.RawRwLockUpgradeFair.html#method.bump_upgradable" class="fn">bump_upgradable</a>(&amp;self)</h4></section></summary><div class='docblock'>Temporarily yields an upgradable lock to a waiting thread if there is one. <a href="../lock_api/rwlock/trait.RawRwLockUpgradeFair.html#method.bump_upgradable">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open><summary><section id="impl-RawRwLockUpgradeTimed-for-RawRwLock" class="impl"><a class="src rightside" href="../src/parking_lot/raw_rwlock.rs.html#454-506">Source</a><a href="#impl-RawRwLockUpgradeTimed-for-RawRwLock" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="../lock_api/rwlock/trait.RawRwLockUpgradeTimed.html" title="trait lock_api::rwlock::RawRwLockUpgradeTimed">RawRwLockUpgradeTimed</a> for <a class="struct" href="struct.RawRwLock.html" title="struct parking_lot::RawRwLock">RawRwLock</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.try_lock_upgradable_until" class="method trait-impl"><a class="src rightside" href="../src/parking_lot/raw_rwlock.rs.html#456-466">Source</a><a href="#method.try_lock_upgradable_until" class="anchor">§</a><h4 class="code-header">fn <a href="../lock_api/rwlock/trait.RawRwLockUpgradeTimed.html#tymethod.try_lock_upgradable_until" class="fn">try_lock_upgradable_until</a>(&amp;self, timeout: <a class="struct" href="https://doc.rust-lang.org/1.84.0/std/time/struct.Instant.html" title="struct std::time::Instant">Instant</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Attempts to acquire an upgradable lock until a timeout is reached.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_lock_upgradable_for" class="method trait-impl"><a class="src rightside" href="../src/parking_lot/raw_rwlock.rs.html#469-479">Source</a><a href="#method.try_lock_upgradable_for" class="anchor">§</a><h4 class="code-header">fn <a href="../lock_api/rwlock/trait.RawRwLockUpgradeTimed.html#tymethod.try_lock_upgradable_for" class="fn">try_lock_upgradable_for</a>(&amp;self, timeout: <a class="struct" href="https://doc.rust-lang.org/1.84.0/core/time/struct.Duration.html" title="struct core::time::Duration">Duration</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Attempts to acquire an upgradable lock until a timeout is reached.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_upgrade_until" class="method trait-impl"><a class="src rightside" href="../src/parking_lot/raw_rwlock.rs.html#482-492">Source</a><a href="#method.try_upgrade_until" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="../lock_api/rwlock/trait.RawRwLockUpgradeTimed.html#tymethod.try_upgrade_until" class="fn">try_upgrade_until</a>(&amp;self, timeout: <a class="struct" href="https://doc.rust-lang.org/1.84.0/std/time/struct.Instant.html" title="struct std::time::Instant">Instant</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Attempts to upgrade an upgradable lock to an exclusive lock until a
timeout is reached. <a href="../lock_api/rwlock/trait.RawRwLockUpgradeTimed.html#tymethod.try_upgrade_until">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.try_upgrade_for" class="method trait-impl"><a class="src rightside" href="../src/parking_lot/raw_rwlock.rs.html#495-505">Source</a><a href="#method.try_upgrade_for" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="../lock_api/rwlock/trait.RawRwLockUpgradeTimed.html#tymethod.try_upgrade_for" class="fn">try_upgrade_for</a>(&amp;self, timeout: <a class="struct" href="https://doc.rust-lang.org/1.84.0/core/time/struct.Duration.html" title="struct core::time::Duration">Duration</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Attempts to upgrade an upgradable lock to an exclusive lock until a
timeout is reached. <a href="../lock_api/rwlock/trait.RawRwLockUpgradeTimed.html#tymethod.try_upgrade_for">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-RawRwLock" class="impl"><a href="#impl-Freeze-for-RawRwLock" class="anchor">§</a><h3 class="code-header">impl !<a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a> for <a class="struct" href="struct.RawRwLock.html" title="struct parking_lot::RawRwLock">RawRwLock</a></h3></section><section id="impl-RefUnwindSafe-for-RawRwLock" class="impl"><a href="#impl-RefUnwindSafe-for-RawRwLock" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="struct.RawRwLock.html" title="struct parking_lot::RawRwLock">RawRwLock</a></h3></section><section id="impl-Send-for-RawRwLock" class="impl"><a href="#impl-Send-for-RawRwLock" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="struct.RawRwLock.html" title="struct parking_lot::RawRwLock">RawRwLock</a></h3></section><section id="impl-Sync-for-RawRwLock" class="impl"><a href="#impl-Sync-for-RawRwLock" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="struct.RawRwLock.html" title="struct parking_lot::RawRwLock">RawRwLock</a></h3></section><section id="impl-Unpin-for-RawRwLock" class="impl"><a href="#impl-Unpin-for-RawRwLock" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="struct.RawRwLock.html" title="struct parking_lot::RawRwLock">RawRwLock</a></h3></section><section id="impl-UnwindSafe-for-RawRwLock" class="impl"><a href="#impl-UnwindSafe-for-RawRwLock" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="struct" href="struct.RawRwLock.html" title="struct parking_lot::RawRwLock">RawRwLock</a></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.84.0/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.84.0/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.84.0/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.84.0/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.84.0/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.84.0/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.84.0/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.84.0/src/core/borrow.rs.html#209">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.84.0/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.84.0/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.84.0/src/core/borrow.rs.html#211">Source</a><a href="#method.borrow" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/core/borrow/trait.Borrow.html#tymethod.borrow" class="fn">borrow</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/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.84.0/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.84.0/src/core/borrow.rs.html#217">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.84.0/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.84.0/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.84.0/src/core/borrow.rs.html#218">Source</a><a href="#method.borrow_mut" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/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.84.0/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.84.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">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.84.0/src/core/convert/mod.rs.html#765">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.84.0/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.84.0/src/core/convert/mod.rs.html#768">Source</a><a href="#method.from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/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.84.0/src/core/convert/mod.rs.html#748-750">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.84.0/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.84.0/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.84.0/src/core/convert/mod.rs.html#758">Source</a><a href="#method.into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/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.84.0/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-TryFrom%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.84.0/src/core/convert/mod.rs.html#805-807">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.84.0/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.84.0/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.84.0/src/core/convert/mod.rs.html#809">Source</a><a href="#associatedtype.Error-1" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryFrom.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="enum" href="https://doc.rust-lang.org/1.84.0/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.84.0/src/core/convert/mod.rs.html#812">Source</a><a href="#method.try_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/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.84.0/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.84.0/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.84.0/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.84.0/src/core/convert/mod.rs.html#790-792">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.84.0/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.84.0/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.84.0/src/core/convert/mod.rs.html#794">Source</a><a href="#associatedtype.Error" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.84.0/core/convert/trait.TryInto.html#associatedtype.Error" class="associatedtype">Error</a> = &lt;U as <a class="trait" href="https://doc.rust-lang.org/1.84.0/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.84.0/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.84.0/src/core/convert/mod.rs.html#797">Source</a><a href="#method.try_into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.84.0/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.84.0/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.84.0/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.84.0/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></section></div></main></body></html>