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

29 lines
35 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="Trait for types that can be safely created with `zeroed`."><title>Zeroable in bytemuck - 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="bytemuck" 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="../bytemuck/index.html">bytemuck</a><span class="version">1.21.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Zeroable</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#safety" title="Safety">Safety</a></li><li><a href="#features" title="Features">Features</a></li></ul><h3><a href="#provided-methods">Provided Methods</a></h3><ul class="block"><li><a href="#method.zeroed" title="zeroed">zeroed</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-Zeroable-for-()" title="()">()</a></li><li><a href="#impl-Zeroable-for-(A,+B)" title="(A, B)">(A, B)</a></li><li><a href="#impl-Zeroable-for-(A,+B,+C)" title="(A, B, C)">(A, B, C)</a></li><li><a href="#impl-Zeroable-for-(A,+B,+C,+D)" title="(A, B, C, D)">(A, B, C, D)</a></li><li><a href="#impl-Zeroable-for-(A,+B,+C,+D,+E)" title="(A, B, C, D, E)">(A, B, C, D, E)</a></li><li><a href="#impl-Zeroable-for-(A,+B,+C,+D,+E,+F)" title="(A, B, C, D, E, F)">(A, B, C, D, E, F)</a></li><li><a href="#impl-Zeroable-for-(A,+B,+C,+D,+E,+F,+G)" title="(A, B, C, D, E, F, G)">(A, B, C, D, E, F, G)</a></li><li><a href="#impl-Zeroable-for-(A,+B,+C,+D,+E,+F,+G,+H)" title="(A, B, C, D, E, F, G, H)">(A, B, C, D, E, F, G, H)</a></li><li><a href="#impl-Zeroable-for-(A,)" title="(A,)">(A,)</a></li><li><a href="#impl-Zeroable-for-*const+T" title="*const T">*const T</a></li><li><a href="#impl-Zeroable-for-*const+%5BT%5D" title="*const [T]">*const [T]</a></li><li><a href="#impl-Zeroable-for-*const+str" title="*const str">*const str</a></li><li><a href="#impl-Zeroable-for-*mut+T" title="*mut T">*mut T</a></li><li><a href="#impl-Zeroable-for-*mut+%5BT%5D" title="*mut [T]">*mut [T]</a></li><li><a href="#impl-Zeroable-for-*mut+str" title="*mut str">*mut str</a></li><li><a href="#impl-Zeroable-for-Cell%3CT%3E" title="Cell&#60;T&#62;">Cell&#60;T&#62;</a></li><li><a href="#impl-Zeroable-for-ManuallyDrop%3CT%3E" title="ManuallyDrop&#60;T&#62;">ManuallyDrop&#60;T&#62;</a></li><li><a href="#impl-Zeroable-for-Option%3CT%3E" title="Option&#60;T&#62;">Option&#60;T&#62;</a></li><li><a href="#impl-Zeroable-for-PhantomData%3CT%3E" title="PhantomData&#60;T&#62;">PhantomData&#60;T&#62;</a></li><li><a href="#impl-Zeroable-for-PhantomPinned" title="PhantomPinned">PhantomPinned</a></li><li><a href="#impl-Zeroable-for-Reverse%3CT%3E" title="Reverse&#60;T&#62;">Reverse&#60;T&#62;</a></li><li><a href="#impl-Zeroable-for-UnsafeCell%3CT%3E" title="UnsafeCell&#60;T&#62;">UnsafeCell&#60;T&#62;</a></li><li><a href="#impl-Zeroable-for-Wrapping%3CT%3E" title="Wrapping&#60;T&#62;">Wrapping&#60;T&#62;</a></li><li><a href="#impl-Zeroable-for-%5BT;+N%5D" title="[T; N]">[T; N]</a></li><li><a href="#impl-Zeroable-for-__m128" title="__m128">__m128</a></li><li><a href="#impl-Zeroable-for-__m128d" title="__m128d">__m128d</a></li><li><a href="#impl-Zeroable-for-__m128i" title="__m128i">__m128i</a></li><li><a href="#impl-Zeroable-for-__m256" title="__m256">__m256</a></li><li><a href="#impl-Zeroable-for-__m256d" title="__m256d">__m256d</a></li><li><a href="#impl-Zeroable-for-__m256i" title="__m256i">__m256i</a></li><li><a href="#impl-Zeroable-for-bool" title="bool">bool</a></li><li><a href="#impl-Zeroable-for-char" title="char">char</a></li><li><a href="#impl-Zeroable-for-f32" title="f32">f32</a></li><li><a href="#impl-Zeroable-for-f64" title="f64">f64</a></li><li><a href="#impl-Zeroable-for-i128" title="i128">i128</a></li><li><a href="#impl-Zeroable-for-i16" title="i16">i16</a></li><li><a href="#impl-Zeroable-for-i32" title="i32">i32</a></li><li><a href="#impl-Zeroable-for-i64" title="i64">i64</a></li><li><a href="#impl-Zeroable-for-i8" title="i8">i8</a></li><li><a href="#impl-Zeroable-for-isize" title="isize">isize</a></li><li><a href="#impl-Zeroable-for-u128" title="u128">u128</a></li><li><a href="#impl-Zeroable-for-u16" title="u16">u16</a></li><li><a href="#impl-Zeroable-for-u32" title="u32">u32</a></li><li><a href="#impl-Zeroable-for-u64" title="u64">u64</a></li><li><a href="#impl-Zeroable-for-u8" title="u8">u8</a></li><li><a href="#impl-Zeroable-for-usize" title="usize">usize</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 bytemuck</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">bytemuck</a></span><h1>Trait <span class="trait">Zeroable</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/bytemuck/zeroable.rs.html#25-35">Source</a> </span></div><pre class="rust item-decl"><code>pub unsafe trait Zeroable: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a> {
// Provided method
fn <a href="#method.zeroed" class="fn">zeroed</a>() -&gt; Self { ... }
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Trait for types that can be safely created with
<a href="https://doc.rust-lang.org/1.84.0/core/mem/fn.zeroed.html" title="fn core::mem::zeroed"><code>zeroed</code></a>.</p>
<p>An all-zeroes value may or may not be the same value as the
<a href="https://doc.rust-lang.org/1.84.0/core/default/trait.Default.html" title="trait core::default::Default">Default</a> value of the type.</p>
<h3 id="safety"><a class="doc-anchor" href="#safety">§</a>Safety</h3>
<ul>
<li>Your type must be inhabited (eg: no
<a href="https://doc.rust-lang.org/1.84.0/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a>).</li>
<li>Your type must be allowed to be an “all zeroes” bit pattern (eg: no
<a href="https://doc.rust-lang.org/1.84.0/core/ptr/non_null/struct.NonNull.html" title="struct core::ptr::non_null::NonNull"><code>NonNull&lt;T&gt;</code></a>).</li>
</ul>
<h3 id="features"><a class="doc-anchor" href="#features">§</a>Features</h3>
<p>Some <code>impl</code>s are feature gated due to the MSRV policy:</p>
<ul>
<li><code>MaybeUninit&lt;T&gt;</code> was not available in 1.34.0, but is available under the
<code>zeroable_maybe_uninit</code> feature flag.</li>
<li><code>Atomic*</code> types require Rust 1.60.0 or later to work on certain platforms,
but is available under the <code>zeroable_atomics</code> feature flag.</li>
<li><code>[T; N]</code> for arbitrary <code>N</code> requires the <code>min_const_generics</code> feature flag.</li>
</ul>
</div></details><h2 id="provided-methods" class="section-header">Provided Methods<a href="#provided-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="method.zeroed" class="method"><a class="src rightside" href="../src/bytemuck/zeroable.rs.html#32-34">Source</a><h4 class="code-header">fn <a href="#method.zeroed" class="fn">zeroed</a>() -&gt; Self</h4></section></summary><div class="docblock"><p>Calls <a href="https://doc.rust-lang.org/1.84.0/core/mem/fn.zeroed.html" title="fn core::mem::zeroed"><code>zeroed</code></a>.</p>
<p>This is a trait method so that you can write <code>MyType::zeroed()</code> in your
code. It is a contract of this trait that if you implement it on your type
you <strong>must not</strong> override this method.</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><section id="impl-Zeroable-for-bool" class="impl"><a class="src rightside" href="../src/bytemuck/zeroable.rs.html#37">Source</a><a href="#impl-Zeroable-for-bool" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a> for <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a></h3></section><section id="impl-Zeroable-for-char" class="impl"><a class="src rightside" href="../src/bytemuck/zeroable.rs.html#38">Source</a><a href="#impl-Zeroable-for-char" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a> for <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.char.html">char</a></h3></section><section id="impl-Zeroable-for-f32" class="impl"><a class="src rightside" href="../src/bytemuck/zeroable.rs.html#53">Source</a><a href="#impl-Zeroable-for-f32" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a> for <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.f32.html">f32</a></h3></section><section id="impl-Zeroable-for-f64" class="impl"><a class="src rightside" href="../src/bytemuck/zeroable.rs.html#54">Source</a><a href="#impl-Zeroable-for-f64" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a> for <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.f64.html">f64</a></h3></section><section id="impl-Zeroable-for-i8" class="impl"><a class="src rightside" href="../src/bytemuck/zeroable.rs.html#40">Source</a><a href="#impl-Zeroable-for-i8" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a> for <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.i8.html">i8</a></h3></section><section id="impl-Zeroable-for-i16" class="impl"><a class="src rightside" href="../src/bytemuck/zeroable.rs.html#42">Source</a><a href="#impl-Zeroable-for-i16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a> for <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.i16.html">i16</a></h3></section><section id="impl-Zeroable-for-i32" class="impl"><a class="src rightside" href="../src/bytemuck/zeroable.rs.html#44">Source</a><a href="#impl-Zeroable-for-i32" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a> for <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.i32.html">i32</a></h3></section><section id="impl-Zeroable-for-i64" class="impl"><a class="src rightside" href="../src/bytemuck/zeroable.rs.html#46">Source</a><a href="#impl-Zeroable-for-i64" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a> for <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.i64.html">i64</a></h3></section><section id="impl-Zeroable-for-i128" class="impl"><a class="src rightside" href="../src/bytemuck/zeroable.rs.html#50">Source</a><a href="#impl-Zeroable-for-i128" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a> for <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.i128.html">i128</a></h3></section><section id="impl-Zeroable-for-isize" class="impl"><a class="src rightside" href="../src/bytemuck/zeroable.rs.html#48">Source</a><a href="#impl-Zeroable-for-isize" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a> for <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.isize.html">isize</a></h3></section><section id="impl-Zeroable-for-*const+str" class="impl"><a class="src rightside" href="../src/bytemuck/zeroable.rs.html#69">Source</a><a href="#impl-Zeroable-for-*const+str" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a> for <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*const </a><a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html">str</a></h3></section><section id="impl-Zeroable-for-*mut+str" class="impl"><a class="src rightside" href="../src/bytemuck/zeroable.rs.html#68">Source</a><a href="#impl-Zeroable-for-*mut+str" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a> for <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*mut </a><a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.str.html">str</a></h3></section><section id="impl-Zeroable-for-u8" class="impl"><a class="src rightside" href="../src/bytemuck/zeroable.rs.html#39">Source</a><a href="#impl-Zeroable-for-u8" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a> for <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html">u8</a></h3></section><section id="impl-Zeroable-for-u16" class="impl"><a class="src rightside" href="../src/bytemuck/zeroable.rs.html#41">Source</a><a href="#impl-Zeroable-for-u16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a> for <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u16.html">u16</a></h3></section><section id="impl-Zeroable-for-u32" class="impl"><a class="src rightside" href="../src/bytemuck/zeroable.rs.html#43">Source</a><a href="#impl-Zeroable-for-u32" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a> for <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a></h3></section><section id="impl-Zeroable-for-u64" class="impl"><a class="src rightside" href="../src/bytemuck/zeroable.rs.html#45">Source</a><a href="#impl-Zeroable-for-u64" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a> for <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u64.html">u64</a></h3></section><section id="impl-Zeroable-for-u128" class="impl"><a class="src rightside" href="../src/bytemuck/zeroable.rs.html#49">Source</a><a href="#impl-Zeroable-for-u128" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a> for <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u128.html">u128</a></h3></section><section id="impl-Zeroable-for-()" class="impl"><a class="src rightside" href="../src/bytemuck/zeroable.rs.html#36">Source</a><a href="#impl-Zeroable-for-()" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a> for <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.unit.html">()</a></h3></section><section id="impl-Zeroable-for-usize" class="impl"><a class="src rightside" href="../src/bytemuck/zeroable.rs.html#47">Source</a><a href="#impl-Zeroable-for-usize" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a> for <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.usize.html">usize</a></h3></section><section id="impl-Zeroable-for-__m128" class="impl"><a class="src rightside" href="../src/bytemuck/zeroable.rs.html#215-221">Source</a><a href="#impl-Zeroable-for-__m128" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a> for <a class="struct" href="https://doc.rust-lang.org/1.84.0/core/core_arch/x86/struct.__m128.html" title="struct core::core_arch::x86::__m128">__m128</a></h3></section><section id="impl-Zeroable-for-__m128d" class="impl"><a class="src rightside" href="../src/bytemuck/zeroable.rs.html#215-221">Source</a><a href="#impl-Zeroable-for-__m128d" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a> for <a class="struct" href="https://doc.rust-lang.org/1.84.0/core/core_arch/x86/struct.__m128d.html" title="struct core::core_arch::x86::__m128d">__m128d</a></h3></section><section id="impl-Zeroable-for-__m128i" class="impl"><a class="src rightside" href="../src/bytemuck/zeroable.rs.html#215-221">Source</a><a href="#impl-Zeroable-for-__m128i" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a> for <a class="struct" href="https://doc.rust-lang.org/1.84.0/core/core_arch/x86/struct.__m128i.html" title="struct core::core_arch::x86::__m128i">__m128i</a></h3></section><section id="impl-Zeroable-for-__m256" class="impl"><a class="src rightside" href="../src/bytemuck/zeroable.rs.html#215-221">Source</a><a href="#impl-Zeroable-for-__m256" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a> for <a class="struct" href="https://doc.rust-lang.org/1.84.0/core/core_arch/x86/struct.__m256.html" title="struct core::core_arch::x86::__m256">__m256</a></h3></section><section id="impl-Zeroable-for-__m256d" class="impl"><a class="src rightside" href="../src/bytemuck/zeroable.rs.html#215-221">Source</a><a href="#impl-Zeroable-for-__m256d" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a> for <a class="struct" href="https://doc.rust-lang.org/1.84.0/core/core_arch/x86/struct.__m256d.html" title="struct core::core_arch::x86::__m256d">__m256d</a></h3></section><section id="impl-Zeroable-for-__m256i" class="impl"><a class="src rightside" href="../src/bytemuck/zeroable.rs.html#215-221">Source</a><a href="#impl-Zeroable-for-__m256i" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a> for <a class="struct" href="https://doc.rust-lang.org/1.84.0/core/core_arch/x86/struct.__m256i.html" title="struct core::core_arch::x86::__m256i">__m256i</a></h3></section><section id="impl-Zeroable-for-PhantomPinned" class="impl"><a class="src rightside" href="../src/bytemuck/zeroable.rs.html#72">Source</a><a href="#impl-Zeroable-for-PhantomPinned" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a> for <a class="struct" href="https://doc.rust-lang.org/1.84.0/core/marker/struct.PhantomPinned.html" title="struct core::marker::PhantomPinned">PhantomPinned</a></h3></section><section id="impl-Zeroable-for-(A,)" class="impl"><a class="src rightside" href="../src/bytemuck/zeroable.rs.html#120">Source</a><a href="#impl-Zeroable-for-(A,)" class="anchor">§</a><h3 class="code-header">impl&lt;A: <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a>&gt; <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a> for <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.tuple.html">(A,)</a></h3></section><section id="impl-Zeroable-for-(A,+B)" class="impl"><a class="src rightside" href="../src/bytemuck/zeroable.rs.html#121">Source</a><a href="#impl-Zeroable-for-(A,+B)" class="anchor">§</a><h3 class="code-header">impl&lt;A: <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a>, B: <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a>&gt; <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a> for <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.tuple.html">(A, B)</a></h3></section><section id="impl-Zeroable-for-(A,+B,+C)" class="impl"><a class="src rightside" href="../src/bytemuck/zeroable.rs.html#122">Source</a><a href="#impl-Zeroable-for-(A,+B,+C)" class="anchor">§</a><h3 class="code-header">impl&lt;A: <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a>, B: <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a>, C: <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a>&gt; <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a> for <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.tuple.html">(A, B, C)</a></h3></section><section id="impl-Zeroable-for-(A,+B,+C,+D)" class="impl"><a class="src rightside" href="../src/bytemuck/zeroable.rs.html#123-126">Source</a><a href="#impl-Zeroable-for-(A,+B,+C,+D)" class="anchor">§</a><h3 class="code-header">impl&lt;A: <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a>, B: <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a>, C: <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a>, D: <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a>&gt; <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a> for <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.tuple.html">(A, B, C, D)</a></h3></section><section id="impl-Zeroable-for-(A,+B,+C,+D,+E)" class="impl"><a class="src rightside" href="../src/bytemuck/zeroable.rs.html#127-130">Source</a><a href="#impl-Zeroable-for-(A,+B,+C,+D,+E)" class="anchor">§</a><h3 class="code-header">impl&lt;A: <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a>, B: <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a>, C: <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a>, D: <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a>, E: <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a>&gt; <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a> for <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.tuple.html">(A, B, C, D, E)</a></h3></section><section id="impl-Zeroable-for-(A,+B,+C,+D,+E,+F)" class="impl"><a class="src rightside" href="../src/bytemuck/zeroable.rs.html#131-140">Source</a><a href="#impl-Zeroable-for-(A,+B,+C,+D,+E,+F)" class="anchor">§</a><h3 class="code-header">impl&lt;A: <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a>, B: <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a>, C: <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a>, D: <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a>, E: <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a>, F: <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a>&gt; <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a> for <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.tuple.html">(A, B, C, D, E, F)</a></h3></section><section id="impl-Zeroable-for-(A,+B,+C,+D,+E,+F,+G)" class="impl"><a class="src rightside" href="../src/bytemuck/zeroable.rs.html#141-151">Source</a><a href="#impl-Zeroable-for-(A,+B,+C,+D,+E,+F,+G)" class="anchor">§</a><h3 class="code-header">impl&lt;A: <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a>, B: <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a>, C: <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a>, D: <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a>, E: <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a>, F: <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a>, G: <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a>&gt; <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a> for <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.tuple.html">(A, B, C, D, E, F, G)</a></h3></section><section id="impl-Zeroable-for-(A,+B,+C,+D,+E,+F,+G,+H)" class="impl"><a class="src rightside" href="../src/bytemuck/zeroable.rs.html#152-163">Source</a><a href="#impl-Zeroable-for-(A,+B,+C,+D,+E,+F,+G,+H)" class="anchor">§</a><h3 class="code-header">impl&lt;A: <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a>, B: <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a>, C: <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a>, D: <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a>, E: <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a>, F: <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a>, G: <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a>, H: <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a>&gt; <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a> for <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.tuple.html">(A, B, C, D, E, F, G, H)</a></h3></section><section id="impl-Zeroable-for-*const+%5BT%5D" class="impl"><a class="src rightside" href="../src/bytemuck/zeroable.rs.html#67">Source</a><a href="#impl-Zeroable-for-*const+%5BT%5D" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a> for <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*const </a><a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html">[T]</a></h3></section><section id="impl-Zeroable-for-*const+T" class="impl"><a class="src rightside" href="../src/bytemuck/zeroable.rs.html#65">Source</a><a href="#impl-Zeroable-for-*const+T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a> for <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*const T</a></h3></section><section id="impl-Zeroable-for-*mut+%5BT%5D" class="impl"><a class="src rightside" href="../src/bytemuck/zeroable.rs.html#66">Source</a><a href="#impl-Zeroable-for-*mut+%5BT%5D" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a> for <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*mut </a><a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.slice.html">[T]</a></h3></section><section id="impl-Zeroable-for-*mut+T" class="impl"><a class="src rightside" href="../src/bytemuck/zeroable.rs.html#64">Source</a><a href="#impl-Zeroable-for-*mut+T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a> for <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.pointer.html">*mut T</a></h3></section><section id="impl-Zeroable-for-%5BT;+N%5D" class="impl"><a class="src rightside" href="../src/bytemuck/zeroable.rs.html#167">Source</a><a href="#impl-Zeroable-for-%5BT;+N%5D" class="anchor">§</a><h3 class="code-header">impl&lt;T, const N: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.usize.html">usize</a>&gt; <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a> for <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.array.html">[T; N]</a><div class="where">where
T: <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a>,</div></h3></section><section id="impl-Zeroable-for-Cell%3CT%3E" class="impl"><a class="src rightside" href="../src/bytemuck/zeroable.rs.html#75">Source</a><a href="#impl-Zeroable-for-Cell%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T: <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a>&gt; <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</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><section id="impl-Zeroable-for-UnsafeCell%3CT%3E" class="impl"><a class="src rightside" href="../src/bytemuck/zeroable.rs.html#74">Source</a><a href="#impl-Zeroable-for-UnsafeCell%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T: <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a>&gt; <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</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><section id="impl-Zeroable-for-Reverse%3CT%3E" class="impl"><a class="src rightside" href="../src/bytemuck/zeroable.rs.html#58">Source</a><a href="#impl-Zeroable-for-Reverse%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T: <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a>&gt; <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a> for <a class="struct" href="https://doc.rust-lang.org/1.84.0/core/cmp/struct.Reverse.html" title="struct core::cmp::Reverse">Reverse</a>&lt;T&gt;</h3></section><section id="impl-Zeroable-for-ManuallyDrop%3CT%3E" class="impl"><a class="src rightside" href="../src/bytemuck/zeroable.rs.html#73">Source</a><a href="#impl-Zeroable-for-ManuallyDrop%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T: <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a>&gt; <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</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><section id="impl-Zeroable-for-Wrapping%3CT%3E" class="impl"><a class="src rightside" href="../src/bytemuck/zeroable.rs.html#57">Source</a><a href="#impl-Zeroable-for-Wrapping%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T: <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a>&gt; <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a> for <a class="struct" href="https://doc.rust-lang.org/1.84.0/core/num/wrapping/struct.Wrapping.html" title="struct core::num::wrapping::Wrapping">Wrapping</a>&lt;T&gt;</h3></section><section id="impl-Zeroable-for-Option%3CT%3E" class="impl"><a class="src rightside" href="../src/bytemuck/zeroable_in_option.rs.html#4">Source</a><a href="#impl-Zeroable-for-Option%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T: <a class="trait" href="trait.ZeroableInOption.html" title="trait bytemuck::ZeroableInOption">ZeroableInOption</a>&gt; <a class="trait" href="trait.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a> for <a class="enum" href="https://doc.rust-lang.org/1.84.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;T&gt;</h3></section><section id="impl-Zeroable-for-PhantomData%3CT%3E" class="impl"><a class="src rightside" href="../src/bytemuck/zeroable.rs.html#71">Source</a><a href="#impl-Zeroable-for-PhantomData%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;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.Zeroable.html" title="trait bytemuck::Zeroable">Zeroable</a> for <a class="struct" href="https://doc.rust-lang.org/1.84.0/core/marker/struct.PhantomData.html" title="struct core::marker::PhantomData">PhantomData</a>&lt;T&gt;</h3></section><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"></div><script src="../trait.impl/bytemuck/zeroable/trait.Zeroable.js" data-ignore-extern-crates="core" async></script></section></div></main></body></html>