32 lines
32 KiB
HTML
32 lines
32 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 “restructured” as a field of some containing type."><title>Restructure 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="#">Restructure</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.Restructured" title="Restructured">Restructured</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.restructure" title="restructure">restructure</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-Restructure%3CU%3E-for-%26Cell%3CT%3E" title="&'a Cell<T>">&'a Cell<T></a></li><li><a href="#impl-Restructure%3CU%3E-for-%26ManuallyDrop%3CT%3E" title="&'a ManuallyDrop<T>">&'a ManuallyDrop<T></a></li><li><a href="#impl-Restructure%3CU%3E-for-%26MaybeUninit%3CT%3E" title="&'a MaybeUninit<T>">&'a MaybeUninit<T></a></li><li><a href="#impl-Restructure%3CU%3E-for-%26UnsafeCell%3CT%3E" title="&'a UnsafeCell<T>">&'a UnsafeCell<T></a></li><li><a href="#impl-Restructure%3CU%3E-for-%26mut+Cell%3CT%3E" title="&'a mut Cell<T>">&'a mut Cell<T></a></li><li><a href="#impl-Restructure%3CU%3E-for-%26mut+ManuallyDrop%3CT%3E" title="&'a mut ManuallyDrop<T>">&'a mut ManuallyDrop<T></a></li><li><a href="#impl-Restructure%3CU%3E-for-%26mut+MaybeUninit%3CT%3E" title="&'a mut MaybeUninit<T>">&'a mut MaybeUninit<T></a></li><li><a href="#impl-Restructure%3CU%3E-for-%26mut+UnsafeCell%3CT%3E" title="&'a mut UnsafeCell<T>">&'a mut UnsafeCell<T></a></li><li><a href="#impl-Restructure%3CU%3E-for-Cell%3CT%3E" title="Cell<T>">Cell<T></a></li><li><a href="#impl-Restructure%3CU%3E-for-ManuallyDrop%3CT%3E" title="ManuallyDrop<T>">ManuallyDrop<T></a></li><li><a href="#impl-Restructure%3CU%3E-for-MaybeUninit%3CT%3E" title="MaybeUninit<T>">MaybeUninit<T></a></li><li><a href="#impl-Restructure%3CU%3E-for-UnsafeCell%3CT%3E" title="UnsafeCell<T>">UnsafeCell<T></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">Restructure</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#110-121">Source</a> </span></div><pre class="rust item-decl"><code>pub unsafe trait Restructure<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>>: <a class="trait" href="trait.Destructure.html" title="trait munge::Destructure">Destructure</a> {
|
|
type <a href="#associatedtype.Restructured" class="associatedtype">Restructured</a>;
|
|
|
|
// Required method
|
|
unsafe fn <a href="#tymethod.restructure" class="fn">restructure</a>(&self, ptr: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*mut T</a>) -> Self::<a class="associatedtype" href="trait.Restructure.html#associatedtype.Restructured" title="type munge::Restructure::Restructured">Restructured</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 “restructured” as a field of some containing type.</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>
|
|
<p><a href="trait.Restructure.html#tymethod.restructure" title="method munge::Restructure::restructure"><code>restructure</code></a> must return a valid
|
|
<a href="trait.Restructure.html#associatedtype.Restructured" title="associated type munge::Restructure::Restructured"><code>Restructured</code></a> that upholds the invariants for
|
|
its <a href="trait.Destructure.html#associatedtype.Destructuring" title="associated type munge::Destructure::Destructuring"><code>Destructuring</code></a>:</p>
|
|
<ul>
|
|
<li>If the type is destructured <a href="struct.Borrow.html" title="struct munge::Borrow">by borrow</a>, then the <code>Restructured</code>
|
|
value must behave as a disjoint borrow of a field of the underlying type.</li>
|
|
<li>If the type is destructured <a href="struct.Move.html" title="struct munge::Move">by move</a>, then the <code>Restructured</code> value
|
|
must move the fields out of the underlying type.</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.Restructured" class="method"><a class="src rightside" href="../src/munge/lib.rs.html#112">Source</a><h4 class="code-header">type <a href="#associatedtype.Restructured" class="associatedtype">Restructured</a></h4></section></summary><div class="docblock"><p>The restructured version of this type.</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.restructure" class="method"><a class="src rightside" href="../src/munge/lib.rs.html#120">Source</a><h4 class="code-header">unsafe fn <a href="#tymethod.restructure" class="fn">restructure</a>(&self, ptr: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*mut T</a>) -> Self::<a class="associatedtype" href="trait.Restructure.html#associatedtype.Restructured" title="type munge::Restructure::Restructured">Restructured</a></h4></section></summary><div class="docblock"><p>Restructures a pointer to this type into the target type.</p>
|
|
<h5 id="safety-1"><a class="doc-anchor" href="#safety-1">§</a>Safety</h5>
|
|
<p><code>ptr</code> must be a properly aligned pointer to a subfield of the pointer
|
|
<a href="trait.Destructure.html#tymethod.underlying" title="method munge::Destructure::underlying"><code>underlying</code></a> <code>self</code>.</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-Restructure%3CU%3E-for-%26UnsafeCell%3CT%3E" class="impl"><a class="src rightside" href="../src/munge/impls.rs.html#246-266">Source</a><a href="#impl-Restructure%3CU%3E-for-%26UnsafeCell%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<'a, T, U> <a class="trait" href="trait.Restructure.html" title="trait munge::Restructure">Restructure</a><U> for &'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><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>,
|
|
U: '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>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Restructured-1" class="associatedtype trait-impl"><a class="src rightside" href="../src/munge/impls.rs.html#251">Source</a><a href="#associatedtype.Restructured-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Restructured" class="associatedtype">Restructured</a> = &'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><U></h4></section><section id="method.restructure" class="method trait-impl"><a class="src rightside" href="../src/munge/impls.rs.html#253-265">Source</a><a href="#method.restructure" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="#tymethod.restructure" class="fn">restructure</a>(&self, ptr: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*mut U</a>) -> Self::<a class="associatedtype" href="trait.Restructure.html#associatedtype.Restructured" title="type munge::Restructure::Restructured">Restructured</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Restructure%3CU%3E-for-%26ManuallyDrop%3CT%3E" class="impl"><a class="src rightside" href="../src/munge/impls.rs.html#355-375">Source</a><a href="#impl-Restructure%3CU%3E-for-%26ManuallyDrop%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<'a, T, U> <a class="trait" href="trait.Restructure.html" title="trait munge::Restructure">Restructure</a><U> for &'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><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>,
|
|
U: '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>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Restructured-2" class="associatedtype trait-impl"><a class="src rightside" href="../src/munge/impls.rs.html#360">Source</a><a href="#associatedtype.Restructured-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Restructured" class="associatedtype">Restructured</a> = &'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><U></h4></section><section id="method.restructure-1" class="method trait-impl"><a class="src rightside" href="../src/munge/impls.rs.html#362-374">Source</a><a href="#method.restructure-1" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="#tymethod.restructure" class="fn">restructure</a>(&self, ptr: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*mut U</a>) -> Self::<a class="associatedtype" href="trait.Restructure.html#associatedtype.Restructured" title="type munge::Restructure::Restructured">Restructured</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Restructure%3CU%3E-for-%26mut+UnsafeCell%3CT%3E" class="impl"><a class="src rightside" href="../src/munge/impls.rs.html#286-305">Source</a><a href="#impl-Restructure%3CU%3E-for-%26mut+UnsafeCell%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<'a, T, U> <a class="trait" href="trait.Restructure.html" title="trait munge::Restructure">Restructure</a><U> for &'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><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>,
|
|
U: '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>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Restructured-3" class="associatedtype trait-impl"><a class="src rightside" href="../src/munge/impls.rs.html#291">Source</a><a href="#associatedtype.Restructured-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Restructured" class="associatedtype">Restructured</a> = &'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><U></h4></section><section id="method.restructure-2" class="method trait-impl"><a class="src rightside" href="../src/munge/impls.rs.html#293-304">Source</a><a href="#method.restructure-2" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="#tymethod.restructure" class="fn">restructure</a>(&self, ptr: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*mut U</a>) -> Self::<a class="associatedtype" href="trait.Restructure.html#associatedtype.Restructured" title="type munge::Restructure::Restructured">Restructured</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Restructure%3CU%3E-for-%26mut+ManuallyDrop%3CT%3E" class="impl"><a class="src rightside" href="../src/munge/impls.rs.html#396-416">Source</a><a href="#impl-Restructure%3CU%3E-for-%26mut+ManuallyDrop%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<'a, T, U> <a class="trait" href="trait.Restructure.html" title="trait munge::Restructure">Restructure</a><U> for &'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><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>,
|
|
U: '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>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Restructured-4" class="associatedtype trait-impl"><a class="src rightside" href="../src/munge/impls.rs.html#401">Source</a><a href="#associatedtype.Restructured-4" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Restructured" class="associatedtype">Restructured</a> = &'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><U></h4></section><section id="method.restructure-3" class="method trait-impl"><a class="src rightside" href="../src/munge/impls.rs.html#403-415">Source</a><a href="#method.restructure-3" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="#tymethod.restructure" class="fn">restructure</a>(&self, ptr: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*mut U</a>) -> Self::<a class="associatedtype" href="trait.Restructure.html#associatedtype.Restructured" title="type munge::Restructure::Restructured">Restructured</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Restructure%3CU%3E-for-%26MaybeUninit%3CT%3E" class="impl"><a class="src rightside" href="../src/munge/impls.rs.html#57-67">Source</a><a href="#impl-Restructure%3CU%3E-for-%26MaybeUninit%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<'a, T, U: 'a> <a class="trait" href="trait.Restructure.html" title="trait munge::Restructure">Restructure</a><U> for &'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><T></h3></section></summary><div class="impl-items"><section id="associatedtype.Restructured-5" class="associatedtype trait-impl"><a class="src rightside" href="../src/munge/impls.rs.html#58">Source</a><a href="#associatedtype.Restructured-5" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Restructured" class="associatedtype">Restructured</a> = &'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><U></h4></section><section id="method.restructure-4" class="method trait-impl"><a class="src rightside" href="../src/munge/impls.rs.html#60-66">Source</a><a href="#method.restructure-4" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="#tymethod.restructure" class="fn">restructure</a>(&self, ptr: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*mut U</a>) -> Self::<a class="associatedtype" href="trait.Restructure.html#associatedtype.Restructured" title="type munge::Restructure::Restructured">Restructured</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Restructure%3CU%3E-for-%26mut+MaybeUninit%3CT%3E" class="impl"><a class="src rightside" href="../src/munge/impls.rs.html#87-97">Source</a><a href="#impl-Restructure%3CU%3E-for-%26mut+MaybeUninit%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<'a, T, U: 'a> <a class="trait" href="trait.Restructure.html" title="trait munge::Restructure">Restructure</a><U> for &'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><T></h3></section></summary><div class="impl-items"><section id="associatedtype.Restructured-6" class="associatedtype trait-impl"><a class="src rightside" href="../src/munge/impls.rs.html#88">Source</a><a href="#associatedtype.Restructured-6" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Restructured" class="associatedtype">Restructured</a> = &'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><U></h4></section><section id="method.restructure-5" class="method trait-impl"><a class="src rightside" href="../src/munge/impls.rs.html#90-96">Source</a><a href="#method.restructure-5" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="#tymethod.restructure" class="fn">restructure</a>(&self, ptr: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*mut U</a>) -> Self::<a class="associatedtype" href="trait.Restructure.html#associatedtype.Restructured" title="type munge::Restructure::Restructured">Restructured</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Restructure%3CU%3E-for-%26Cell%3CT%3E" class="impl"><a class="src rightside" href="../src/munge/impls.rs.html#146-161">Source</a><a href="#impl-Restructure%3CU%3E-for-%26Cell%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<'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>, U: '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>> <a class="trait" href="trait.Restructure.html" title="trait munge::Restructure">Restructure</a><U> for &'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><T></h3></section></summary><div class="impl-items"><section id="associatedtype.Restructured-7" class="associatedtype trait-impl"><a class="src rightside" href="../src/munge/impls.rs.html#147">Source</a><a href="#associatedtype.Restructured-7" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Restructured" class="associatedtype">Restructured</a> = &'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><U></h4></section><section id="method.restructure-6" class="method trait-impl"><a class="src rightside" href="../src/munge/impls.rs.html#149-160">Source</a><a href="#method.restructure-6" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="#tymethod.restructure" class="fn">restructure</a>(&self, ptr: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*mut U</a>) -> Self::<a class="associatedtype" href="trait.Restructure.html#associatedtype.Restructured" title="type munge::Restructure::Restructured">Restructured</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Restructure%3CU%3E-for-%26mut+Cell%3CT%3E" class="impl"><a class="src rightside" href="../src/munge/impls.rs.html#181-196">Source</a><a href="#impl-Restructure%3CU%3E-for-%26mut+Cell%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<'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>, U: '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>> <a class="trait" href="trait.Restructure.html" title="trait munge::Restructure">Restructure</a><U> for &'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><T></h3></section></summary><div class="impl-items"><section id="associatedtype.Restructured-8" class="associatedtype trait-impl"><a class="src rightside" href="../src/munge/impls.rs.html#182">Source</a><a href="#associatedtype.Restructured-8" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Restructured" class="associatedtype">Restructured</a> = &'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><U></h4></section><section id="method.restructure-7" class="method trait-impl"><a class="src rightside" href="../src/munge/impls.rs.html#184-195">Source</a><a href="#method.restructure-7" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="#tymethod.restructure" class="fn">restructure</a>(&self, ptr: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*mut U</a>) -> Self::<a class="associatedtype" href="trait.Restructure.html#associatedtype.Restructured" title="type munge::Restructure::Restructured">Restructured</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Restructure%3CU%3E-for-Cell%3CT%3E" class="impl"><a class="src rightside" href="../src/munge/impls.rs.html#116-126">Source</a><a href="#impl-Restructure%3CU%3E-for-Cell%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="trait.Restructure.html" title="trait munge::Restructure">Restructure</a><U> 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><T></h3></section></summary><div class="impl-items"><section id="associatedtype.Restructured-9" class="associatedtype trait-impl"><a class="src rightside" href="../src/munge/impls.rs.html#117">Source</a><a href="#associatedtype.Restructured-9" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Restructured" class="associatedtype">Restructured</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><U></h4></section><section id="method.restructure-8" class="method trait-impl"><a class="src rightside" href="../src/munge/impls.rs.html#119-125">Source</a><a href="#method.restructure-8" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="#tymethod.restructure" class="fn">restructure</a>(&self, ptr: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*mut U</a>) -> Self::<a class="associatedtype" href="trait.Restructure.html#associatedtype.Restructured" title="type munge::Restructure::Restructured">Restructured</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Restructure%3CU%3E-for-UnsafeCell%3CT%3E" class="impl"><a class="src rightside" href="../src/munge/impls.rs.html#216-226">Source</a><a href="#impl-Restructure%3CU%3E-for-UnsafeCell%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="trait.Restructure.html" title="trait munge::Restructure">Restructure</a><U> 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><T></h3></section></summary><div class="impl-items"><section id="associatedtype.Restructured-10" class="associatedtype trait-impl"><a class="src rightside" href="../src/munge/impls.rs.html#217">Source</a><a href="#associatedtype.Restructured-10" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Restructured" class="associatedtype">Restructured</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><U></h4></section><section id="method.restructure-9" class="method trait-impl"><a class="src rightside" href="../src/munge/impls.rs.html#219-225">Source</a><a href="#method.restructure-9" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="#tymethod.restructure" class="fn">restructure</a>(&self, ptr: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*mut U</a>) -> Self::<a class="associatedtype" href="trait.Restructure.html#associatedtype.Restructured" title="type munge::Restructure::Restructured">Restructured</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Restructure%3CU%3E-for-ManuallyDrop%3CT%3E" class="impl"><a class="src rightside" href="../src/munge/impls.rs.html#325-335">Source</a><a href="#impl-Restructure%3CU%3E-for-ManuallyDrop%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="trait.Restructure.html" title="trait munge::Restructure">Restructure</a><U> 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><T></h3></section></summary><div class="impl-items"><section id="associatedtype.Restructured-11" class="associatedtype trait-impl"><a class="src rightside" href="../src/munge/impls.rs.html#326">Source</a><a href="#associatedtype.Restructured-11" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Restructured" class="associatedtype">Restructured</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><U></h4></section><section id="method.restructure-10" class="method trait-impl"><a class="src rightside" href="../src/munge/impls.rs.html#328-334">Source</a><a href="#method.restructure-10" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="#tymethod.restructure" class="fn">restructure</a>(&self, ptr: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*mut U</a>) -> Self::<a class="associatedtype" href="trait.Restructure.html#associatedtype.Restructured" title="type munge::Restructure::Restructured">Restructured</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Restructure%3CU%3E-for-MaybeUninit%3CT%3E" class="impl"><a class="src rightside" href="../src/munge/impls.rs.html#27-37">Source</a><a href="#impl-Restructure%3CU%3E-for-MaybeUninit%3CT%3E" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="trait.Restructure.html" title="trait munge::Restructure">Restructure</a><U> 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><T></h3></section></summary><div class="impl-items"><section id="associatedtype.Restructured-12" class="associatedtype trait-impl"><a class="src rightside" href="../src/munge/impls.rs.html#28">Source</a><a href="#associatedtype.Restructured-12" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Restructured" class="associatedtype">Restructured</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><U></h4></section><section id="method.restructure-11" class="method trait-impl"><a class="src rightside" href="../src/munge/impls.rs.html#30-36">Source</a><a href="#method.restructure-11" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="#tymethod.restructure" class="fn">restructure</a>(&self, ptr: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*mut U</a>) -> Self::<a class="associatedtype" href="trait.Restructure.html#associatedtype.Restructured" title="type munge::Restructure::Restructured">Restructured</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.Restructure.js" data-ignore-extern-crates="core" async></script></section></div></main></body></html> |