Files
phy/munge/trait.Destructure.html
Orion Kindel 0ce894e6b0 doc
2025-03-18 10:30:23 -05:00

27 lines
33 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="A type that can be destructured into its constituent parts."><title>Destructure in munge - 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="munge" 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 trait"><!--[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="../munge/index.html">munge</a><span class="version">0.4.1</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Destructure</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#safety" title="Safety">Safety</a></li></ul><h3><a href="#required-associated-types">Required Associated Types</a></h3><ul class="block"><li><a href="#associatedtype.Destructuring" title="Destructuring">Destructuring</a></li><li><a href="#associatedtype.Underlying" title="Underlying">Underlying</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.underlying" title="underlying">underlying</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-Destructure-for-%26Cell%3CT%3E" title="&#38;&#39;a Cell&#60;T&#62;">&#38;&#39;a Cell&#60;T&#62;</a></li><li><a href="#impl-Destructure-for-%26ManuallyDrop%3CT%3E" title="&#38;&#39;a ManuallyDrop&#60;T&#62;">&#38;&#39;a ManuallyDrop&#60;T&#62;</a></li><li><a href="#impl-Destructure-for-%26MaybeUninit%3CT%3E" title="&#38;&#39;a MaybeUninit&#60;T&#62;">&#38;&#39;a MaybeUninit&#60;T&#62;</a></li><li><a href="#impl-Destructure-for-%26UnsafeCell%3CT%3E" title="&#38;&#39;a UnsafeCell&#60;T&#62;">&#38;&#39;a UnsafeCell&#60;T&#62;</a></li><li><a href="#impl-Destructure-for-%26mut+Cell%3CT%3E" title="&#38;&#39;a mut Cell&#60;T&#62;">&#38;&#39;a mut Cell&#60;T&#62;</a></li><li><a href="#impl-Destructure-for-%26mut+ManuallyDrop%3CT%3E" title="&#38;&#39;a mut ManuallyDrop&#60;T&#62;">&#38;&#39;a mut ManuallyDrop&#60;T&#62;</a></li><li><a href="#impl-Destructure-for-%26mut+MaybeUninit%3CT%3E" title="&#38;&#39;a mut MaybeUninit&#60;T&#62;">&#38;&#39;a mut MaybeUninit&#60;T&#62;</a></li><li><a href="#impl-Destructure-for-%26mut+UnsafeCell%3CT%3E" title="&#38;&#39;a mut UnsafeCell&#60;T&#62;">&#38;&#39;a mut UnsafeCell&#60;T&#62;</a></li><li><a href="#impl-Destructure-for-Cell%3CT%3E" title="Cell&#60;T&#62;">Cell&#60;T&#62;</a></li><li><a href="#impl-Destructure-for-ManuallyDrop%3CT%3E" title="ManuallyDrop&#60;T&#62;">ManuallyDrop&#60;T&#62;</a></li><li><a href="#impl-Destructure-for-MaybeUninit%3CT%3E" title="MaybeUninit&#60;T&#62;">MaybeUninit&#60;T&#62;</a></li><li><a href="#impl-Destructure-for-UnsafeCell%3CT%3E" title="UnsafeCell&#60;T&#62;">UnsafeCell&#60;T&#62;</a></li></ul><h3><a href="#dyn-compatibility">Dyn Compatibility</a></h3><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="index.html">In crate munge</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">munge</a></span><h1>Trait <span class="trait">Destructure</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/munge/lib.rs.html#86-94">Source</a> </span></div><pre class="rust item-decl"><code>pub unsafe trait Destructure: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a> {
type <a href="#associatedtype.Underlying" class="associatedtype">Underlying</a>: ?<a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>;
type <a href="#associatedtype.Destructuring" class="associatedtype">Destructuring</a>: Destructuring;
// Required method
fn <a href="#tymethod.underlying" class="fn">underlying</a>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*mut </a>Self::<a class="associatedtype" href="trait.Destructure.html#associatedtype.Underlying" title="type munge::Destructure::Underlying">Underlying</a>;
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A type that can be destructured into its constituent parts.</p>
<p>See the <a href="index.html#examples">crate docs</a> for an example of implementing
<code>Destructure</code> and <code>Restructure</code>.</p>
<h2 id="safety"><a class="doc-anchor" href="#safety">§</a>Safety</h2>
<ul>
<li><a href="trait.Destructure.html#associatedtype.Destructuring" title="associated type munge::Destructure::Destructuring"><code>Destructuring</code></a> must reflect the type of
destructuring allowed for the type:
<ul>
<li><a href="struct.Borrow.html" title="struct munge::Borrow"><code>Borrow</code></a> if the type is restructured by creating disjoint borrows of
the fields of <code>Underlying</code>.</li>
<li><a href="struct.Move.html" title="struct munge::Move"><code>Move</code></a> if the type may be restructured by moving the fields out of the
destructured <code>Underlying</code>.</li>
</ul>
</li>
<li><a href="trait.Destructure.html#tymethod.underlying" title="method munge::Destructure::underlying"><code>underlying</code></a> must return a pointer that is
non-null, properly aligned, and valid for reads.</li>
</ul>
</div></details><h2 id="required-associated-types" class="section-header">Required Associated Types<a href="#required-associated-types" class="anchor">§</a></h2><div class="methods"><details class="toggle" open><summary><section id="associatedtype.Underlying" class="method"><a class="src rightside" href="../src/munge/lib.rs.html#88">Source</a><h4 class="code-header">type <a href="#associatedtype.Underlying" class="associatedtype">Underlying</a>: ?<a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a></h4></section></summary><div class="docblock"><p>The underlying type that is destructured.</p>
</div></details><details class="toggle" open><summary><section id="associatedtype.Destructuring" class="method"><a class="src rightside" href="../src/munge/lib.rs.html#90">Source</a><h4 class="code-header">type <a href="#associatedtype.Destructuring" class="associatedtype">Destructuring</a>: Destructuring</h4></section></summary><div class="docblock"><p>The type of destructuring to perform.</p>
</div></details></div><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="tymethod.underlying" class="method"><a class="src rightside" href="../src/munge/lib.rs.html#93">Source</a><h4 class="code-header">fn <a href="#tymethod.underlying" class="fn">underlying</a>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*mut </a>Self::<a class="associatedtype" href="trait.Destructure.html#associatedtype.Underlying" title="type munge::Destructure::Underlying">Underlying</a></h4></section></summary><div class="docblock"><p>Returns a mutable pointer to the underlying type.</p>
</div></details></div><h2 id="dyn-compatibility" class="section-header">Dyn Compatibility<a href="#dyn-compatibility" class="anchor">§</a></h2><div class="dyn-compatibility-info"><p>This trait is <b>not</b> <a href="https://doc.rust-lang.org/1.84.0/reference/items/traits.html#object-safety">dyn compatible</a>.</p><p><i>In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.</i></p></div><h2 id="foreign-impls" class="section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor">§</a></h2><details class="toggle implementors-toggle"><summary><section id="impl-Destructure-for-%26MaybeUninit%3CT%3E" class="impl"><a class="src rightside" href="../src/munge/impls.rs.html#46-53">Source</a><a href="#impl-Destructure-for-%26MaybeUninit%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;'a, T&gt; <a class="trait" href="trait.Destructure.html" title="trait munge::Destructure">Destructure</a> for &amp;'a <a class="union" href="https://doc.rust-lang.org/1.84.0/core/mem/maybe_uninit/union.MaybeUninit.html" title="union core::mem::maybe_uninit::MaybeUninit">MaybeUninit</a>&lt;T&gt;</h3></section></summary><div class="impl-items"><section id="associatedtype.Underlying-1" class="associatedtype trait-impl"><a class="src rightside" href="../src/munge/impls.rs.html#47">Source</a><a href="#associatedtype.Underlying-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Underlying" class="associatedtype">Underlying</a> = T</h4></section><section id="associatedtype.Destructuring-1" class="associatedtype trait-impl"><a class="src rightside" href="../src/munge/impls.rs.html#48">Source</a><a href="#associatedtype.Destructuring-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Destructuring" class="associatedtype">Destructuring</a> = <a class="struct" href="struct.Borrow.html" title="struct munge::Borrow">Borrow</a></h4></section><section id="method.underlying" class="method trait-impl"><a class="src rightside" href="../src/munge/impls.rs.html#50-52">Source</a><a href="#method.underlying" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.underlying" class="fn">underlying</a>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*mut </a>Self::<a class="associatedtype" href="trait.Destructure.html#associatedtype.Underlying" title="type munge::Destructure::Underlying">Underlying</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Destructure-for-%26mut+MaybeUninit%3CT%3E" class="impl"><a class="src rightside" href="../src/munge/impls.rs.html#76-83">Source</a><a href="#impl-Destructure-for-%26mut+MaybeUninit%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;'a, T&gt; <a class="trait" href="trait.Destructure.html" title="trait munge::Destructure">Destructure</a> for &amp;'a mut <a class="union" href="https://doc.rust-lang.org/1.84.0/core/mem/maybe_uninit/union.MaybeUninit.html" title="union core::mem::maybe_uninit::MaybeUninit">MaybeUninit</a>&lt;T&gt;</h3></section></summary><div class="impl-items"><section id="associatedtype.Underlying-2" class="associatedtype trait-impl"><a class="src rightside" href="../src/munge/impls.rs.html#77">Source</a><a href="#associatedtype.Underlying-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Underlying" class="associatedtype">Underlying</a> = T</h4></section><section id="associatedtype.Destructuring-2" class="associatedtype trait-impl"><a class="src rightside" href="../src/munge/impls.rs.html#78">Source</a><a href="#associatedtype.Destructuring-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Destructuring" class="associatedtype">Destructuring</a> = <a class="struct" href="struct.Borrow.html" title="struct munge::Borrow">Borrow</a></h4></section><section id="method.underlying-1" class="method trait-impl"><a class="src rightside" href="../src/munge/impls.rs.html#80-82">Source</a><a href="#method.underlying-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.underlying" class="fn">underlying</a>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*mut </a>Self::<a class="associatedtype" href="trait.Destructure.html#associatedtype.Underlying" title="type munge::Destructure::Underlying">Underlying</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Destructure-for-%26Cell%3CT%3E" class="impl"><a class="src rightside" href="../src/munge/impls.rs.html#135-142">Source</a><a href="#impl-Destructure-for-%26Cell%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;'a, 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>&gt; <a class="trait" href="trait.Destructure.html" title="trait munge::Destructure">Destructure</a> for &amp;'a <a class="struct" href="https://doc.rust-lang.org/1.84.0/core/cell/struct.Cell.html" title="struct core::cell::Cell">Cell</a>&lt;T&gt;</h3></section></summary><div class="impl-items"><section id="associatedtype.Underlying-3" class="associatedtype trait-impl"><a class="src rightside" href="../src/munge/impls.rs.html#136">Source</a><a href="#associatedtype.Underlying-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Underlying" class="associatedtype">Underlying</a> = T</h4></section><section id="associatedtype.Destructuring-3" class="associatedtype trait-impl"><a class="src rightside" href="../src/munge/impls.rs.html#137">Source</a><a href="#associatedtype.Destructuring-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Destructuring" class="associatedtype">Destructuring</a> = <a class="struct" href="struct.Borrow.html" title="struct munge::Borrow">Borrow</a></h4></section><section id="method.underlying-2" class="method trait-impl"><a class="src rightside" href="../src/munge/impls.rs.html#139-141">Source</a><a href="#method.underlying-2" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.underlying" class="fn">underlying</a>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*mut </a>Self::<a class="associatedtype" href="trait.Destructure.html#associatedtype.Underlying" title="type munge::Destructure::Underlying">Underlying</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Destructure-for-%26UnsafeCell%3CT%3E" class="impl"><a class="src rightside" href="../src/munge/impls.rs.html#235-242">Source</a><a href="#impl-Destructure-for-%26UnsafeCell%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;'a, 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>&gt; <a class="trait" href="trait.Destructure.html" title="trait munge::Destructure">Destructure</a> for &amp;'a <a class="struct" href="https://doc.rust-lang.org/1.84.0/core/cell/struct.UnsafeCell.html" title="struct core::cell::UnsafeCell">UnsafeCell</a>&lt;T&gt;</h3></section></summary><div class="impl-items"><section id="associatedtype.Underlying-4" class="associatedtype trait-impl"><a class="src rightside" href="../src/munge/impls.rs.html#236">Source</a><a href="#associatedtype.Underlying-4" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Underlying" class="associatedtype">Underlying</a> = T</h4></section><section id="associatedtype.Destructuring-4" class="associatedtype trait-impl"><a class="src rightside" href="../src/munge/impls.rs.html#237">Source</a><a href="#associatedtype.Destructuring-4" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Destructuring" class="associatedtype">Destructuring</a> = <a class="struct" href="struct.Borrow.html" title="struct munge::Borrow">Borrow</a></h4></section><section id="method.underlying-3" class="method trait-impl"><a class="src rightside" href="../src/munge/impls.rs.html#239-241">Source</a><a href="#method.underlying-3" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.underlying" class="fn">underlying</a>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*mut </a>Self::<a class="associatedtype" href="trait.Destructure.html#associatedtype.Underlying" title="type munge::Destructure::Underlying">Underlying</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Destructure-for-%26ManuallyDrop%3CT%3E" class="impl"><a class="src rightside" href="../src/munge/impls.rs.html#344-351">Source</a><a href="#impl-Destructure-for-%26ManuallyDrop%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;'a, 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>&gt; <a class="trait" href="trait.Destructure.html" title="trait munge::Destructure">Destructure</a> for &amp;'a <a class="struct" href="https://doc.rust-lang.org/1.84.0/core/mem/manually_drop/struct.ManuallyDrop.html" title="struct core::mem::manually_drop::ManuallyDrop">ManuallyDrop</a>&lt;T&gt;</h3></section></summary><div class="impl-items"><section id="associatedtype.Underlying-5" class="associatedtype trait-impl"><a class="src rightside" href="../src/munge/impls.rs.html#345">Source</a><a href="#associatedtype.Underlying-5" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Underlying" class="associatedtype">Underlying</a> = T</h4></section><section id="associatedtype.Destructuring-5" class="associatedtype trait-impl"><a class="src rightside" href="../src/munge/impls.rs.html#346">Source</a><a href="#associatedtype.Destructuring-5" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Destructuring" class="associatedtype">Destructuring</a> = <a class="struct" href="struct.Borrow.html" title="struct munge::Borrow">Borrow</a></h4></section><section id="method.underlying-4" class="method trait-impl"><a class="src rightside" href="../src/munge/impls.rs.html#348-350">Source</a><a href="#method.underlying-4" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.underlying" class="fn">underlying</a>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*mut </a>Self::<a class="associatedtype" href="trait.Destructure.html#associatedtype.Underlying" title="type munge::Destructure::Underlying">Underlying</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Destructure-for-%26mut+Cell%3CT%3E" class="impl"><a class="src rightside" href="../src/munge/impls.rs.html#170-177">Source</a><a href="#impl-Destructure-for-%26mut+Cell%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;'a, 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>&gt; <a class="trait" href="trait.Destructure.html" title="trait munge::Destructure">Destructure</a> for &amp;'a mut <a class="struct" href="https://doc.rust-lang.org/1.84.0/core/cell/struct.Cell.html" title="struct core::cell::Cell">Cell</a>&lt;T&gt;</h3></section></summary><div class="impl-items"><section id="associatedtype.Underlying-6" class="associatedtype trait-impl"><a class="src rightside" href="../src/munge/impls.rs.html#171">Source</a><a href="#associatedtype.Underlying-6" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Underlying" class="associatedtype">Underlying</a> = T</h4></section><section id="associatedtype.Destructuring-6" class="associatedtype trait-impl"><a class="src rightside" href="../src/munge/impls.rs.html#172">Source</a><a href="#associatedtype.Destructuring-6" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Destructuring" class="associatedtype">Destructuring</a> = <a class="struct" href="struct.Borrow.html" title="struct munge::Borrow">Borrow</a></h4></section><section id="method.underlying-5" class="method trait-impl"><a class="src rightside" href="../src/munge/impls.rs.html#174-176">Source</a><a href="#method.underlying-5" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.underlying" class="fn">underlying</a>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*mut </a>Self::<a class="associatedtype" href="trait.Destructure.html#associatedtype.Underlying" title="type munge::Destructure::Underlying">Underlying</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Destructure-for-%26mut+UnsafeCell%3CT%3E" class="impl"><a class="src rightside" href="../src/munge/impls.rs.html#275-282">Source</a><a href="#impl-Destructure-for-%26mut+UnsafeCell%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;'a, 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>&gt; <a class="trait" href="trait.Destructure.html" title="trait munge::Destructure">Destructure</a> for &amp;'a mut <a class="struct" href="https://doc.rust-lang.org/1.84.0/core/cell/struct.UnsafeCell.html" title="struct core::cell::UnsafeCell">UnsafeCell</a>&lt;T&gt;</h3></section></summary><div class="impl-items"><section id="associatedtype.Underlying-7" class="associatedtype trait-impl"><a class="src rightside" href="../src/munge/impls.rs.html#276">Source</a><a href="#associatedtype.Underlying-7" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Underlying" class="associatedtype">Underlying</a> = T</h4></section><section id="associatedtype.Destructuring-7" class="associatedtype trait-impl"><a class="src rightside" href="../src/munge/impls.rs.html#277">Source</a><a href="#associatedtype.Destructuring-7" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Destructuring" class="associatedtype">Destructuring</a> = <a class="struct" href="struct.Borrow.html" title="struct munge::Borrow">Borrow</a></h4></section><section id="method.underlying-6" class="method trait-impl"><a class="src rightside" href="../src/munge/impls.rs.html#279-281">Source</a><a href="#method.underlying-6" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.underlying" class="fn">underlying</a>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*mut </a>Self::<a class="associatedtype" href="trait.Destructure.html#associatedtype.Underlying" title="type munge::Destructure::Underlying">Underlying</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Destructure-for-%26mut+ManuallyDrop%3CT%3E" class="impl"><a class="src rightside" href="../src/munge/impls.rs.html#384-391">Source</a><a href="#impl-Destructure-for-%26mut+ManuallyDrop%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;'a, 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>&gt; <a class="trait" href="trait.Destructure.html" title="trait munge::Destructure">Destructure</a> for &amp;'a mut <a class="struct" href="https://doc.rust-lang.org/1.84.0/core/mem/manually_drop/struct.ManuallyDrop.html" title="struct core::mem::manually_drop::ManuallyDrop">ManuallyDrop</a>&lt;T&gt;</h3></section></summary><div class="impl-items"><section id="associatedtype.Underlying-8" class="associatedtype trait-impl"><a class="src rightside" href="../src/munge/impls.rs.html#385">Source</a><a href="#associatedtype.Underlying-8" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Underlying" class="associatedtype">Underlying</a> = T</h4></section><section id="associatedtype.Destructuring-8" class="associatedtype trait-impl"><a class="src rightside" href="../src/munge/impls.rs.html#386">Source</a><a href="#associatedtype.Destructuring-8" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Destructuring" class="associatedtype">Destructuring</a> = <a class="struct" href="struct.Borrow.html" title="struct munge::Borrow">Borrow</a></h4></section><section id="method.underlying-7" class="method trait-impl"><a class="src rightside" href="../src/munge/impls.rs.html#388-390">Source</a><a href="#method.underlying-7" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.underlying" class="fn">underlying</a>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*mut </a>Self::<a class="associatedtype" href="trait.Destructure.html#associatedtype.Underlying" title="type munge::Destructure::Underlying">Underlying</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Destructure-for-Cell%3CT%3E" class="impl"><a class="src rightside" href="../src/munge/impls.rs.html#105-112">Source</a><a href="#impl-Destructure-for-Cell%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="trait.Destructure.html" title="trait munge::Destructure">Destructure</a> for <a class="struct" href="https://doc.rust-lang.org/1.84.0/core/cell/struct.Cell.html" title="struct core::cell::Cell">Cell</a>&lt;T&gt;</h3></section></summary><div class="impl-items"><section id="associatedtype.Underlying-9" class="associatedtype trait-impl"><a class="src rightside" href="../src/munge/impls.rs.html#106">Source</a><a href="#associatedtype.Underlying-9" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Underlying" class="associatedtype">Underlying</a> = T</h4></section><section id="associatedtype.Destructuring-9" class="associatedtype trait-impl"><a class="src rightside" href="../src/munge/impls.rs.html#107">Source</a><a href="#associatedtype.Destructuring-9" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Destructuring" class="associatedtype">Destructuring</a> = <a class="struct" href="struct.Move.html" title="struct munge::Move">Move</a></h4></section><section id="method.underlying-8" class="method trait-impl"><a class="src rightside" href="../src/munge/impls.rs.html#109-111">Source</a><a href="#method.underlying-8" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.underlying" class="fn">underlying</a>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*mut </a>Self::<a class="associatedtype" href="trait.Destructure.html#associatedtype.Underlying" title="type munge::Destructure::Underlying">Underlying</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Destructure-for-UnsafeCell%3CT%3E" class="impl"><a class="src rightside" href="../src/munge/impls.rs.html#205-212">Source</a><a href="#impl-Destructure-for-UnsafeCell%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="trait.Destructure.html" title="trait munge::Destructure">Destructure</a> for <a class="struct" href="https://doc.rust-lang.org/1.84.0/core/cell/struct.UnsafeCell.html" title="struct core::cell::UnsafeCell">UnsafeCell</a>&lt;T&gt;</h3></section></summary><div class="impl-items"><section id="associatedtype.Underlying-10" class="associatedtype trait-impl"><a class="src rightside" href="../src/munge/impls.rs.html#206">Source</a><a href="#associatedtype.Underlying-10" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Underlying" class="associatedtype">Underlying</a> = T</h4></section><section id="associatedtype.Destructuring-10" class="associatedtype trait-impl"><a class="src rightside" href="../src/munge/impls.rs.html#207">Source</a><a href="#associatedtype.Destructuring-10" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Destructuring" class="associatedtype">Destructuring</a> = <a class="struct" href="struct.Move.html" title="struct munge::Move">Move</a></h4></section><section id="method.underlying-9" class="method trait-impl"><a class="src rightside" href="../src/munge/impls.rs.html#209-211">Source</a><a href="#method.underlying-9" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.underlying" class="fn">underlying</a>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*mut </a>Self::<a class="associatedtype" href="trait.Destructure.html#associatedtype.Underlying" title="type munge::Destructure::Underlying">Underlying</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Destructure-for-ManuallyDrop%3CT%3E" class="impl"><a class="src rightside" href="../src/munge/impls.rs.html#314-321">Source</a><a href="#impl-Destructure-for-ManuallyDrop%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="trait.Destructure.html" title="trait munge::Destructure">Destructure</a> for <a class="struct" href="https://doc.rust-lang.org/1.84.0/core/mem/manually_drop/struct.ManuallyDrop.html" title="struct core::mem::manually_drop::ManuallyDrop">ManuallyDrop</a>&lt;T&gt;</h3></section></summary><div class="impl-items"><section id="associatedtype.Underlying-11" class="associatedtype trait-impl"><a class="src rightside" href="../src/munge/impls.rs.html#315">Source</a><a href="#associatedtype.Underlying-11" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Underlying" class="associatedtype">Underlying</a> = T</h4></section><section id="associatedtype.Destructuring-11" class="associatedtype trait-impl"><a class="src rightside" href="../src/munge/impls.rs.html#316">Source</a><a href="#associatedtype.Destructuring-11" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Destructuring" class="associatedtype">Destructuring</a> = <a class="struct" href="struct.Move.html" title="struct munge::Move">Move</a></h4></section><section id="method.underlying-10" class="method trait-impl"><a class="src rightside" href="../src/munge/impls.rs.html#318-320">Source</a><a href="#method.underlying-10" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.underlying" class="fn">underlying</a>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*mut </a>Self::<a class="associatedtype" href="trait.Destructure.html#associatedtype.Underlying" title="type munge::Destructure::Underlying">Underlying</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Destructure-for-MaybeUninit%3CT%3E" class="impl"><a class="src rightside" href="../src/munge/impls.rs.html#16-23">Source</a><a href="#impl-Destructure-for-MaybeUninit%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="trait.Destructure.html" title="trait munge::Destructure">Destructure</a> for <a class="union" href="https://doc.rust-lang.org/1.84.0/core/mem/maybe_uninit/union.MaybeUninit.html" title="union core::mem::maybe_uninit::MaybeUninit">MaybeUninit</a>&lt;T&gt;</h3></section></summary><div class="impl-items"><section id="associatedtype.Underlying-12" class="associatedtype trait-impl"><a class="src rightside" href="../src/munge/impls.rs.html#17">Source</a><a href="#associatedtype.Underlying-12" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Underlying" class="associatedtype">Underlying</a> = T</h4></section><section id="associatedtype.Destructuring-12" class="associatedtype trait-impl"><a class="src rightside" href="../src/munge/impls.rs.html#18">Source</a><a href="#associatedtype.Destructuring-12" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Destructuring" class="associatedtype">Destructuring</a> = <a class="struct" href="struct.Move.html" title="struct munge::Move">Move</a></h4></section><section id="method.underlying-11" class="method trait-impl"><a class="src rightside" href="../src/munge/impls.rs.html#20-22">Source</a><a href="#method.underlying-11" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.underlying" class="fn">underlying</a>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*mut </a>Self::<a class="associatedtype" href="trait.Destructure.html#associatedtype.Underlying" title="type munge::Destructure::Underlying">Underlying</a></h4></section></div></details><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"></div><script src="../trait.impl/munge/trait.Destructure.js" data-ignore-extern-crates="core" async></script></section></div></main></body></html>