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

127 lines
52 KiB
HTML
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="A trait indicating that:"><title>Contiguous 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="#">Contiguous</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#example" title="Example">Example</a></li><li><a href="#safety" title="Safety">Safety</a></li></ul><h3><a href="#required-associated-consts">Required Associated Constants</a></h3><ul class="block"><li><a href="#associatedconstant.MAX_VALUE" title="MAX_VALUE">MAX_VALUE</a></li><li><a href="#associatedconstant.MIN_VALUE" title="MIN_VALUE">MIN_VALUE</a></li></ul><h3><a href="#required-associated-types">Required Associated Types</a></h3><ul class="block"><li><a href="#associatedtype.Int" title="Int">Int</a></li></ul><h3><a href="#provided-methods">Provided Methods</a></h3><ul class="block"><li><a href="#method.from_integer" title="from_integer">from_integer</a></li><li><a href="#method.into_integer" title="into_integer">into_integer</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-Contiguous-for-NonZero%3Cu128%3E" title="NonZeroU128">NonZeroU128</a></li><li><a href="#impl-Contiguous-for-NonZero%3Cu16%3E" title="NonZeroU16">NonZeroU16</a></li><li><a href="#impl-Contiguous-for-NonZero%3Cu32%3E" title="NonZeroU32">NonZeroU32</a></li><li><a href="#impl-Contiguous-for-NonZero%3Cu64%3E" title="NonZeroU64">NonZeroU64</a></li><li><a href="#impl-Contiguous-for-NonZero%3Cu8%3E" title="NonZeroU8">NonZeroU8</a></li><li><a href="#impl-Contiguous-for-NonZero%3Cusize%3E" title="NonZeroUsize">NonZeroUsize</a></li><li><a href="#impl-Contiguous-for-bool" title="bool">bool</a></li><li><a href="#impl-Contiguous-for-i128" title="i128">i128</a></li><li><a href="#impl-Contiguous-for-i16" title="i16">i16</a></li><li><a href="#impl-Contiguous-for-i32" title="i32">i32</a></li><li><a href="#impl-Contiguous-for-i64" title="i64">i64</a></li><li><a href="#impl-Contiguous-for-i8" title="i8">i8</a></li><li><a href="#impl-Contiguous-for-isize" title="isize">isize</a></li><li><a href="#impl-Contiguous-for-u128" title="u128">u128</a></li><li><a href="#impl-Contiguous-for-u16" title="u16">u16</a></li><li><a href="#impl-Contiguous-for-u32" title="u32">u32</a></li><li><a href="#impl-Contiguous-for-u64" title="u64">u64</a></li><li><a href="#impl-Contiguous-for-u8" title="u8">u8</a></li><li><a href="#impl-Contiguous-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">Contiguous</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/contiguous.rs.html#80-171">Source</a> </span></div><pre class="rust item-decl"><code>pub unsafe trait Contiguous: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> + 'static {
type <a href="#associatedtype.Int" class="associatedtype">Int</a>: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a>;
const <a href="#associatedconstant.MAX_VALUE" class="constant">MAX_VALUE</a>: Self::<a class="associatedtype" href="trait.Contiguous.html#associatedtype.Int" title="type bytemuck::Contiguous::Int">Int</a>;
const <a href="#associatedconstant.MIN_VALUE" class="constant">MIN_VALUE</a>: Self::<a class="associatedtype" href="trait.Contiguous.html#associatedtype.Int" title="type bytemuck::Contiguous::Int">Int</a>;
// Provided methods
fn <a href="#method.from_integer" class="fn">from_integer</a>(value: Self::<a class="associatedtype" href="trait.Contiguous.html#associatedtype.Int" title="type bytemuck::Contiguous::Int">Int</a>) -&gt; <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;Self&gt; { ... }
<span class="item-spacer"></span> fn <a href="#method.into_integer" class="fn">into_integer</a>(self) -&gt; Self::<a class="associatedtype" href="trait.Contiguous.html#associatedtype.Int" title="type bytemuck::Contiguous::Int">Int</a> { ... }
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A trait indicating that:</p>
<ol>
<li>A type has an equivalent representation to some known integral type.</li>
<li>All instances of this type fall in a fixed range of values.</li>
<li>Within that range, there are no gaps.</li>
</ol>
<p>This is generally useful for fieldless enums (aka “c-style” enums), however
its important that it only be used for those with an explicit <code>#[repr]</code>, as
<code>#[repr(Rust)]</code> fieldess enums have an unspecified layout.</p>
<p>Additionally, you shouldnt assume that all implementations are enums. Any
type which meets the requirements above while following the rules under
“Safety” below is valid.</p>
<h2 id="example"><a class="doc-anchor" href="#example">§</a>Example</h2>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="attr">#[repr(u8)]
#[derive(Debug, Copy, Clone, PartialEq)]
</span><span class="kw">enum </span>Foo {
A = <span class="number">0</span>,
B = <span class="number">1</span>,
C = <span class="number">2</span>,
D = <span class="number">3</span>,
E = <span class="number">4</span>,
}
<span class="kw">unsafe impl </span>Contiguous <span class="kw">for </span>Foo {
<span class="kw">type </span>Int = u8;
<span class="kw">const </span>MIN_VALUE: u8 = Foo::A <span class="kw">as </span>u8;
<span class="kw">const </span>MAX_VALUE: u8 = Foo::E <span class="kw">as </span>u8;
}
<span class="macro">assert_eq!</span>(Foo::from_integer(<span class="number">3</span>).unwrap(), Foo::D);
<span class="macro">assert_eq!</span>(Foo::from_integer(<span class="number">8</span>), <span class="prelude-val">None</span>);
<span class="macro">assert_eq!</span>(Foo::C.into_integer(), <span class="number">2</span>);</code></pre></div>
<h2 id="safety"><a class="doc-anchor" href="#safety">§</a>Safety</h2>
<p>This is an unsafe trait, and incorrectly implementing it is undefined
behavior.</p>
<p>Informally, by implementing it, youre asserting that <code>C</code> is identical to
the integral type <code>C::Int</code>, and that every <code>C</code> falls between <code>C::MIN_VALUE</code>
and <code>C::MAX_VALUE</code> exactly once, without any gaps.</p>
<p>Precisely, the guarantees you must uphold when implementing <code>Contiguous</code> for
some type <code>C</code> are:</p>
<ol>
<li>
<p>The size of <code>C</code> and <code>C::Int</code> must be the same, and neither may be a ZST.
(Note: alignment is explicitly allowed to differ)</p>
</li>
<li>
<p><code>C::Int</code> must be a primitive integer, and not a wrapper type. In the
future, this may be lifted to include cases where the behavior is
identical for a relevant set of traits (Ord, arithmetic, …).</p>
</li>
<li>
<p>All <code>C::Int</code>s which are in the <em>inclusive</em> range between <code>C::MIN_VALUE</code>
and <code>C::MAX_VALUE</code> are bitwise identical to unique valid instances of
<code>C</code>.</p>
</li>
<li>
<p>There exist no instances of <code>C</code> such that their bitpatterns, when
interpreted as instances of <code>C::Int</code>, fall outside of the <code>MAX_VALUE</code> /
<code>MIN_VALUE</code> range It is legal for unsafe code to assume that if it
gets a <code>C</code> that implements <code>Contiguous</code>, it is in the appropriate range.</p>
</li>
<li>
<p>Finally, you promise not to provide overridden implementations of
<code>Contiguous::from_integer</code> and <code>Contiguous::into_integer</code>.</p>
</li>
</ol>
<p>For clarity, the following rules could be derived from the above, but are
listed explicitly:</p>
<ul>
<li>
<p><code>C::MAX_VALUE</code> must be greater or equal to <code>C::MIN_VALUE</code> (therefore, <code>C</code>
must be an inhabited type).</p>
</li>
<li>
<p>There exist no two values between <code>MIN_VALUE</code> and <code>MAX_VALUE</code> such that
when interpreted as a <code>C</code> they are considered identical (by, say, match).</p>
</li>
</ul>
</div></details><h2 id="required-associated-consts" class="section-header">Required Associated Constants<a href="#required-associated-consts" class="anchor">§</a></h2><div class="methods"><details class="toggle" open><summary><section id="associatedconstant.MAX_VALUE" class="method"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#101">Source</a><h4 class="code-header">const <a href="#associatedconstant.MAX_VALUE" class="constant">MAX_VALUE</a>: Self::<a class="associatedtype" href="trait.Contiguous.html#associatedtype.Int" title="type bytemuck::Contiguous::Int">Int</a></h4></section></summary><div class="docblock"><p>The upper <em>inclusive</em> bound for valid instances of this type.</p>
</div></details><details class="toggle" open><summary><section id="associatedconstant.MIN_VALUE" class="method"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#104">Source</a><h4 class="code-header">const <a href="#associatedconstant.MIN_VALUE" class="constant">MIN_VALUE</a>: Self::<a class="associatedtype" href="trait.Contiguous.html#associatedtype.Int" title="type bytemuck::Contiguous::Int">Int</a></h4></section></summary><div class="docblock"><p>The lower <em>inclusive</em> bound for valid instances of this type.</p>
</div></details></div><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.Int" class="method"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#98">Source</a><h4 class="code-header">type <a href="#associatedtype.Int" class="associatedtype">Int</a>: <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> + <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a></h4></section></summary><div class="docblock"><p>The primitive integer type with an identical representation to this
type.</p>
<p>Contiguous is broadly intended for use with fieldless enums, and for
these the correct integer type is easy: The enum should have a
<code>#[repr(Int)]</code> or <code>#[repr(C)]</code> attribute, (if it does not, it is
<em>unsound</em> to implement <code>Contiguous</code>!).</p>
<ul>
<li>
<p>For <code>#[repr(Int)]</code>, use the listed <code>Int</code>. e.g. <code>#[repr(u8)]</code> should use
<code>type Int = u8</code>.</p>
</li>
<li>
<p>For <code>#[repr(C)]</code>, use whichever type the C compiler will use to
represent the given enum. This is usually <code>c_int</code> (from <code>std::os::raw</code>
or <code>libc</code>), but its up to you to make the determination as the
implementer of the unsafe trait.</p>
</li>
</ul>
<p>For precise rules, see the list under “Safety” above.</p>
</div></details></div><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.from_integer" class="method"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#122-139">Source</a><h4 class="code-header">fn <a href="#method.from_integer" class="fn">from_integer</a>(value: Self::<a class="associatedtype" href="trait.Contiguous.html#associatedtype.Int" title="type bytemuck::Contiguous::Int">Int</a>) -&gt; <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;Self&gt;</h4></section></summary><div class="docblock"><p>If <code>value</code> is within the range for valid instances of this type,
returns <code>Some(converted_value)</code>, otherwise, returns <code>None</code>.</p>
<p>This is a trait method so that you can write <code>value.into_integer()</code> in
your code. It is a contract of this trait that if you implement
<code>Contiguous</code> on your type you <strong>must not</strong> override this method.</p>
<h5 id="panics"><a class="doc-anchor" href="#panics">§</a>Panics</h5>
<p>We will not panic for any correct implementation of <code>Contiguous</code>, but
<em>may</em> panic if we detect an incorrect one.</p>
<p>This is undefined behavior regardless, so it could have been the nasal
demons at that point anyway ;).</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.into_integer" class="method"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#158-170">Source</a><h4 class="code-header">fn <a href="#method.into_integer" class="fn">into_integer</a>(self) -&gt; Self::<a class="associatedtype" href="trait.Contiguous.html#associatedtype.Int" title="type bytemuck::Contiguous::Int">Int</a></h4></section></summary><div class="docblock"><p>Perform the conversion from <code>C</code> into the underlying integral type. This
mostly exists otherwise generic code would need unsafe for the <code>value as integer</code></p>
<p>This is a trait method so that you can write <code>value.into_integer()</code> in
your code. It is a contract of this trait that if you implement
<code>Contiguous</code> on your type you <strong>must not</strong> override this method.</p>
<h5 id="panics-1"><a class="doc-anchor" href="#panics-1">§</a>Panics</h5>
<p>We will not panic for any correct implementation of <code>Contiguous</code>, but
<em>may</em> panic if we detect an incorrect one.</p>
<p>This is undefined behavior regardless, so it could have been the nasal
demons at that point anyway ;).</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-Contiguous-for-bool" class="impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#impl-Contiguous-for-bool" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Contiguous.html" title="trait bytemuck::Contiguous">Contiguous</a> for <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.bool.html">bool</a></h3></section></summary><div class="impl-items"><section id="associatedconstant.MAX_VALUE-1" class="associatedconstant trait-impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#associatedconstant.MAX_VALUE-1" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.MAX_VALUE" class="constant">MAX_VALUE</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html">u8</a> = 1u8</h4></section><section id="associatedconstant.MIN_VALUE-1" class="associatedconstant trait-impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#associatedconstant.MIN_VALUE-1" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.MIN_VALUE" class="constant">MIN_VALUE</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html">u8</a> = 0u8</h4></section><section id="associatedtype.Int-1" class="associatedtype trait-impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#associatedtype.Int-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Int" class="associatedtype">Int</a> = <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html">u8</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Contiguous-for-i8" class="impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#impl-Contiguous-for-i8" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Contiguous.html" title="trait bytemuck::Contiguous">Contiguous</a> for <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.i8.html">i8</a></h3></section></summary><div class="impl-items"><section id="associatedconstant.MAX_VALUE-2" class="associatedconstant trait-impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#associatedconstant.MAX_VALUE-2" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.MAX_VALUE" class="constant">MAX_VALUE</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.i8.html">i8</a> = 127i8</h4></section><section id="associatedconstant.MIN_VALUE-2" class="associatedconstant trait-impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#associatedconstant.MIN_VALUE-2" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.MIN_VALUE" class="constant">MIN_VALUE</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.i8.html">i8</a> = -128i8</h4></section><section id="associatedtype.Int-2" class="associatedtype trait-impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#associatedtype.Int-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Int" class="associatedtype">Int</a> = <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.i8.html">i8</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Contiguous-for-i16" class="impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#impl-Contiguous-for-i16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Contiguous.html" title="trait bytemuck::Contiguous">Contiguous</a> for <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.i16.html">i16</a></h3></section></summary><div class="impl-items"><section id="associatedconstant.MAX_VALUE-3" class="associatedconstant trait-impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#associatedconstant.MAX_VALUE-3" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.MAX_VALUE" class="constant">MAX_VALUE</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.i16.html">i16</a> = 32_767i16</h4></section><section id="associatedconstant.MIN_VALUE-3" class="associatedconstant trait-impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#associatedconstant.MIN_VALUE-3" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.MIN_VALUE" class="constant">MIN_VALUE</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.i16.html">i16</a> = -32_768i16</h4></section><section id="associatedtype.Int-3" class="associatedtype trait-impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#associatedtype.Int-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Int" class="associatedtype">Int</a> = <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.i16.html">i16</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Contiguous-for-i32" class="impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#impl-Contiguous-for-i32" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Contiguous.html" title="trait bytemuck::Contiguous">Contiguous</a> for <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.i32.html">i32</a></h3></section></summary><div class="impl-items"><section id="associatedconstant.MAX_VALUE-4" class="associatedconstant trait-impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#associatedconstant.MAX_VALUE-4" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.MAX_VALUE" class="constant">MAX_VALUE</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.i32.html">i32</a> = 2_147_483_647i32</h4></section><section id="associatedconstant.MIN_VALUE-4" class="associatedconstant trait-impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#associatedconstant.MIN_VALUE-4" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.MIN_VALUE" class="constant">MIN_VALUE</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.i32.html">i32</a> = -2_147_483_648i32</h4></section><section id="associatedtype.Int-4" class="associatedtype trait-impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#associatedtype.Int-4" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Int" class="associatedtype">Int</a> = <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.i32.html">i32</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Contiguous-for-i64" class="impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#impl-Contiguous-for-i64" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Contiguous.html" title="trait bytemuck::Contiguous">Contiguous</a> for <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.i64.html">i64</a></h3></section></summary><div class="impl-items"><section id="associatedconstant.MAX_VALUE-5" class="associatedconstant trait-impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#associatedconstant.MAX_VALUE-5" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.MAX_VALUE" class="constant">MAX_VALUE</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.i64.html">i64</a> = 9_223_372_036_854_775_807i64</h4></section><section id="associatedconstant.MIN_VALUE-5" class="associatedconstant trait-impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#associatedconstant.MIN_VALUE-5" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.MIN_VALUE" class="constant">MIN_VALUE</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.i64.html">i64</a> = -9_223_372_036_854_775_808i64</h4></section><section id="associatedtype.Int-5" class="associatedtype trait-impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#associatedtype.Int-5" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Int" class="associatedtype">Int</a> = <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.i64.html">i64</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Contiguous-for-i128" class="impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#impl-Contiguous-for-i128" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Contiguous.html" title="trait bytemuck::Contiguous">Contiguous</a> for <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.i128.html">i128</a></h3></section></summary><div class="impl-items"><section id="associatedconstant.MAX_VALUE-6" class="associatedconstant trait-impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#associatedconstant.MAX_VALUE-6" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.MAX_VALUE" class="constant">MAX_VALUE</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.i128.html">i128</a> = 170_141_183_460_469_231_731_687_303_715_884_105_727i128</h4></section><section id="associatedconstant.MIN_VALUE-6" class="associatedconstant trait-impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#associatedconstant.MIN_VALUE-6" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.MIN_VALUE" class="constant">MIN_VALUE</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.i128.html">i128</a> = -170_141_183_460_469_231_731_687_303_715_884_105_728i128</h4></section><section id="associatedtype.Int-6" class="associatedtype trait-impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#associatedtype.Int-6" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Int" class="associatedtype">Int</a> = <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.i128.html">i128</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Contiguous-for-isize" class="impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#impl-Contiguous-for-isize" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Contiguous.html" title="trait bytemuck::Contiguous">Contiguous</a> for <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.isize.html">isize</a></h3></section></summary><div class="impl-items"><section id="associatedconstant.MAX_VALUE-7" class="associatedconstant trait-impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#associatedconstant.MAX_VALUE-7" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.MAX_VALUE" class="constant">MAX_VALUE</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.isize.html">isize</a> = 9_223_372_036_854_775_807isize</h4></section><section id="associatedconstant.MIN_VALUE-7" class="associatedconstant trait-impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#associatedconstant.MIN_VALUE-7" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.MIN_VALUE" class="constant">MIN_VALUE</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.isize.html">isize</a> = -9_223_372_036_854_775_808isize</h4></section><section id="associatedtype.Int-7" class="associatedtype trait-impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#associatedtype.Int-7" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Int" class="associatedtype">Int</a> = <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.isize.html">isize</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Contiguous-for-u8" class="impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#impl-Contiguous-for-u8" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Contiguous.html" title="trait bytemuck::Contiguous">Contiguous</a> for <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html">u8</a></h3></section></summary><div class="impl-items"><section id="associatedconstant.MAX_VALUE-8" class="associatedconstant trait-impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#associatedconstant.MAX_VALUE-8" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.MAX_VALUE" class="constant">MAX_VALUE</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html">u8</a> = 255u8</h4></section><section id="associatedconstant.MIN_VALUE-8" class="associatedconstant trait-impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#associatedconstant.MIN_VALUE-8" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.MIN_VALUE" class="constant">MIN_VALUE</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html">u8</a> = 0u8</h4></section><section id="associatedtype.Int-8" class="associatedtype trait-impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#associatedtype.Int-8" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Int" class="associatedtype">Int</a> = <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html">u8</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Contiguous-for-u16" class="impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#impl-Contiguous-for-u16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Contiguous.html" title="trait bytemuck::Contiguous">Contiguous</a> for <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u16.html">u16</a></h3></section></summary><div class="impl-items"><section id="associatedconstant.MAX_VALUE-9" class="associatedconstant trait-impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#associatedconstant.MAX_VALUE-9" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.MAX_VALUE" class="constant">MAX_VALUE</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u16.html">u16</a> = 65_535u16</h4></section><section id="associatedconstant.MIN_VALUE-9" class="associatedconstant trait-impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#associatedconstant.MIN_VALUE-9" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.MIN_VALUE" class="constant">MIN_VALUE</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u16.html">u16</a> = 0u16</h4></section><section id="associatedtype.Int-9" class="associatedtype trait-impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#associatedtype.Int-9" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Int" class="associatedtype">Int</a> = <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u16.html">u16</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Contiguous-for-u32" class="impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#impl-Contiguous-for-u32" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Contiguous.html" title="trait bytemuck::Contiguous">Contiguous</a> for <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a></h3></section></summary><div class="impl-items"><section id="associatedconstant.MAX_VALUE-10" class="associatedconstant trait-impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#associatedconstant.MAX_VALUE-10" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.MAX_VALUE" class="constant">MAX_VALUE</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a> = 4_294_967_295u32</h4></section><section id="associatedconstant.MIN_VALUE-10" class="associatedconstant trait-impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#associatedconstant.MIN_VALUE-10" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.MIN_VALUE" class="constant">MIN_VALUE</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a> = 0u32</h4></section><section id="associatedtype.Int-10" class="associatedtype trait-impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#associatedtype.Int-10" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Int" class="associatedtype">Int</a> = <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Contiguous-for-u64" class="impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#impl-Contiguous-for-u64" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Contiguous.html" title="trait bytemuck::Contiguous">Contiguous</a> for <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u64.html">u64</a></h3></section></summary><div class="impl-items"><section id="associatedconstant.MAX_VALUE-11" class="associatedconstant trait-impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#associatedconstant.MAX_VALUE-11" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.MAX_VALUE" class="constant">MAX_VALUE</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u64.html">u64</a> = 18_446_744_073_709_551_615u64</h4></section><section id="associatedconstant.MIN_VALUE-11" class="associatedconstant trait-impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#associatedconstant.MIN_VALUE-11" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.MIN_VALUE" class="constant">MIN_VALUE</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u64.html">u64</a> = 0u64</h4></section><section id="associatedtype.Int-11" class="associatedtype trait-impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#associatedtype.Int-11" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Int" class="associatedtype">Int</a> = <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u64.html">u64</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Contiguous-for-u128" class="impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#impl-Contiguous-for-u128" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Contiguous.html" title="trait bytemuck::Contiguous">Contiguous</a> for <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u128.html">u128</a></h3></section></summary><div class="impl-items"><section id="associatedconstant.MAX_VALUE-12" class="associatedconstant trait-impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#associatedconstant.MAX_VALUE-12" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.MAX_VALUE" class="constant">MAX_VALUE</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u128.html">u128</a> = 340_282_366_920_938_463_463_374_607_431_768_211_455u128</h4></section><section id="associatedconstant.MIN_VALUE-12" class="associatedconstant trait-impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#associatedconstant.MIN_VALUE-12" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.MIN_VALUE" class="constant">MIN_VALUE</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u128.html">u128</a> = 0u128</h4></section><section id="associatedtype.Int-12" class="associatedtype trait-impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#associatedtype.Int-12" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Int" class="associatedtype">Int</a> = <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u128.html">u128</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Contiguous-for-usize" class="impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#impl-Contiguous-for-usize" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Contiguous.html" title="trait bytemuck::Contiguous">Contiguous</a> for <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.usize.html">usize</a></h3></section></summary><div class="impl-items"><section id="associatedconstant.MAX_VALUE-13" class="associatedconstant trait-impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#associatedconstant.MAX_VALUE-13" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.MAX_VALUE" class="constant">MAX_VALUE</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.usize.html">usize</a> = 18_446_744_073_709_551_615usize</h4></section><section id="associatedconstant.MIN_VALUE-13" class="associatedconstant trait-impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#associatedconstant.MIN_VALUE-13" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.MIN_VALUE" class="constant">MIN_VALUE</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.usize.html">usize</a> = 0usize</h4></section><section id="associatedtype.Int-13" class="associatedtype trait-impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#associatedtype.Int-13" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Int" class="associatedtype">Int</a> = <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.usize.html">usize</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Contiguous-for-NonZero%3Cu8%3E" class="impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#impl-Contiguous-for-NonZero%3Cu8%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Contiguous.html" title="trait bytemuck::Contiguous">Contiguous</a> for <a class="type" href="https://doc.rust-lang.org/1.84.0/core/num/nonzero/type.NonZeroU8.html" title="type core::num::nonzero::NonZeroU8">NonZeroU8</a></h3></section></summary><div class="impl-items"><section id="associatedconstant.MAX_VALUE-14" class="associatedconstant trait-impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#associatedconstant.MAX_VALUE-14" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.MAX_VALUE" class="constant">MAX_VALUE</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html">u8</a> = 255u8</h4></section><section id="associatedconstant.MIN_VALUE-14" class="associatedconstant trait-impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#associatedconstant.MIN_VALUE-14" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.MIN_VALUE" class="constant">MIN_VALUE</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html">u8</a> = 1u8</h4></section><section id="associatedtype.Int-14" class="associatedtype trait-impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#associatedtype.Int-14" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Int" class="associatedtype">Int</a> = <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u8.html">u8</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Contiguous-for-NonZero%3Cu16%3E" class="impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#impl-Contiguous-for-NonZero%3Cu16%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Contiguous.html" title="trait bytemuck::Contiguous">Contiguous</a> for <a class="type" href="https://doc.rust-lang.org/1.84.0/core/num/nonzero/type.NonZeroU16.html" title="type core::num::nonzero::NonZeroU16">NonZeroU16</a></h3></section></summary><div class="impl-items"><section id="associatedconstant.MAX_VALUE-15" class="associatedconstant trait-impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#associatedconstant.MAX_VALUE-15" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.MAX_VALUE" class="constant">MAX_VALUE</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u16.html">u16</a> = 65_535u16</h4></section><section id="associatedconstant.MIN_VALUE-15" class="associatedconstant trait-impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#associatedconstant.MIN_VALUE-15" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.MIN_VALUE" class="constant">MIN_VALUE</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u16.html">u16</a> = 1u16</h4></section><section id="associatedtype.Int-15" class="associatedtype trait-impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#associatedtype.Int-15" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Int" class="associatedtype">Int</a> = <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u16.html">u16</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Contiguous-for-NonZero%3Cu32%3E" class="impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#impl-Contiguous-for-NonZero%3Cu32%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Contiguous.html" title="trait bytemuck::Contiguous">Contiguous</a> for <a class="type" href="https://doc.rust-lang.org/1.84.0/core/num/nonzero/type.NonZeroU32.html" title="type core::num::nonzero::NonZeroU32">NonZeroU32</a></h3></section></summary><div class="impl-items"><section id="associatedconstant.MAX_VALUE-16" class="associatedconstant trait-impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#associatedconstant.MAX_VALUE-16" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.MAX_VALUE" class="constant">MAX_VALUE</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a> = 4_294_967_295u32</h4></section><section id="associatedconstant.MIN_VALUE-16" class="associatedconstant trait-impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#associatedconstant.MIN_VALUE-16" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.MIN_VALUE" class="constant">MIN_VALUE</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a> = 1u32</h4></section><section id="associatedtype.Int-16" class="associatedtype trait-impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#associatedtype.Int-16" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Int" class="associatedtype">Int</a> = <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u32.html">u32</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Contiguous-for-NonZero%3Cu64%3E" class="impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#impl-Contiguous-for-NonZero%3Cu64%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Contiguous.html" title="trait bytemuck::Contiguous">Contiguous</a> for <a class="type" href="https://doc.rust-lang.org/1.84.0/core/num/nonzero/type.NonZeroU64.html" title="type core::num::nonzero::NonZeroU64">NonZeroU64</a></h3></section></summary><div class="impl-items"><section id="associatedconstant.MAX_VALUE-17" class="associatedconstant trait-impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#associatedconstant.MAX_VALUE-17" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.MAX_VALUE" class="constant">MAX_VALUE</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u64.html">u64</a> = 18_446_744_073_709_551_615u64</h4></section><section id="associatedconstant.MIN_VALUE-17" class="associatedconstant trait-impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#associatedconstant.MIN_VALUE-17" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.MIN_VALUE" class="constant">MIN_VALUE</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u64.html">u64</a> = 1u64</h4></section><section id="associatedtype.Int-17" class="associatedtype trait-impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#associatedtype.Int-17" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Int" class="associatedtype">Int</a> = <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u64.html">u64</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Contiguous-for-NonZero%3Cu128%3E" class="impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#impl-Contiguous-for-NonZero%3Cu128%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Contiguous.html" title="trait bytemuck::Contiguous">Contiguous</a> for <a class="type" href="https://doc.rust-lang.org/1.84.0/core/num/nonzero/type.NonZeroU128.html" title="type core::num::nonzero::NonZeroU128">NonZeroU128</a></h3></section></summary><div class="impl-items"><section id="associatedconstant.MAX_VALUE-18" class="associatedconstant trait-impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#associatedconstant.MAX_VALUE-18" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.MAX_VALUE" class="constant">MAX_VALUE</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u128.html">u128</a> = 340_282_366_920_938_463_463_374_607_431_768_211_455u128</h4></section><section id="associatedconstant.MIN_VALUE-18" class="associatedconstant trait-impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#associatedconstant.MIN_VALUE-18" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.MIN_VALUE" class="constant">MIN_VALUE</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u128.html">u128</a> = 1u128</h4></section><section id="associatedtype.Int-18" class="associatedtype trait-impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#associatedtype.Int-18" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Int" class="associatedtype">Int</a> = <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.u128.html">u128</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Contiguous-for-NonZero%3Cusize%3E" class="impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#impl-Contiguous-for-NonZero%3Cusize%3E" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Contiguous.html" title="trait bytemuck::Contiguous">Contiguous</a> for <a class="type" href="https://doc.rust-lang.org/1.84.0/core/num/nonzero/type.NonZeroUsize.html" title="type core::num::nonzero::NonZeroUsize">NonZeroUsize</a></h3></section></summary><div class="impl-items"><section id="associatedconstant.MAX_VALUE-19" class="associatedconstant trait-impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#associatedconstant.MAX_VALUE-19" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.MAX_VALUE" class="constant">MAX_VALUE</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.usize.html">usize</a> = 18_446_744_073_709_551_615usize</h4></section><section id="associatedconstant.MIN_VALUE-19" class="associatedconstant trait-impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#associatedconstant.MIN_VALUE-19" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.MIN_VALUE" class="constant">MIN_VALUE</a>: <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.usize.html">usize</a> = 1usize</h4></section><section id="associatedtype.Int-19" class="associatedtype trait-impl"><a class="src rightside" href="../src/bytemuck/contiguous.rs.html#183-206">Source</a><a href="#associatedtype.Int-19" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Int" class="associatedtype">Int</a> = <a class="primitive" href="https://doc.rust-lang.org/1.84.0/core/primitive.usize.html">usize</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/bytemuck/contiguous/trait.Contiguous.js" data-ignore-extern-crates="core" async></script></section></div></main></body></html>