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

148 lines
47 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

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 for working generically across different Sample format types."><title>Sample in dasp_sample - 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="dasp_sample" 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="../dasp_sample/index.html">dasp_<wbr>sample</a><span class="version">0.11.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Sample</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#example" title="Example">Example</a></li></ul><h3><a href="#required-associated-consts">Required Associated Constants</a></h3><ul class="block"><li><a href="#associatedconstant.EQUILIBRIUM" title="EQUILIBRIUM">EQUILIBRIUM</a></li></ul><h3><a href="#provided-associated-consts">Provided Associated Constants</a></h3><ul class="block"><li><a href="#associatedconstant.IDENTITY" title="IDENTITY">IDENTITY</a></li></ul><h3><a href="#required-associated-types">Required Associated Types</a></h3><ul class="block"><li><a href="#associatedtype.Float" title="Float">Float</a></li><li><a href="#associatedtype.Signed" title="Signed">Signed</a></li></ul><h3><a href="#provided-methods">Provided Methods</a></h3><ul class="block"><li><a href="#method.add_amp" title="add_amp">add_amp</a></li><li><a href="#method.from_sample" title="from_sample">from_sample</a></li><li><a href="#method.mul_amp" title="mul_amp">mul_amp</a></li><li><a href="#method.to_float_sample" title="to_float_sample">to_float_sample</a></li><li><a href="#method.to_sample" title="to_sample">to_sample</a></li><li><a href="#method.to_signed_sample" title="to_signed_sample">to_signed_sample</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-Sample-for-f32" title="f32">f32</a></li><li><a href="#impl-Sample-for-f64" title="f64">f64</a></li><li><a href="#impl-Sample-for-i16" title="i16">i16</a></li><li><a href="#impl-Sample-for-i32" title="i32">i32</a></li><li><a href="#impl-Sample-for-i64" title="i64">i64</a></li><li><a href="#impl-Sample-for-i8" title="i8">i8</a></li><li><a href="#impl-Sample-for-u16" title="u16">u16</a></li><li><a href="#impl-Sample-for-u32" title="u32">u32</a></li><li><a href="#impl-Sample-for-u64" title="u64">u64</a></li><li><a href="#impl-Sample-for-u8" title="u8">u8</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 dasp_<wbr>sample</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">dasp_sample</a></span><h1>Trait <span class="trait">Sample</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/dasp_sample/lib.rs.html#39-241">Source</a> </span></div><pre class="rust item-decl"><code>pub trait Sample:
<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/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>
+ <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.PartialOrd.html" title="trait core::cmp::PartialOrd">PartialOrd</a>
+ <a class="trait" href="https://doc.rust-lang.org/1.84.0/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a> {
type <a href="#associatedtype.Signed" class="associatedtype">Signed</a>: <a class="trait" href="trait.SignedSample.html" title="trait dasp_sample::SignedSample">SignedSample</a> + <a class="trait" href="conv/trait.Duplex.html" title="trait dasp_sample::conv::Duplex">Duplex</a>&lt;Self&gt;;
type <a href="#associatedtype.Float" class="associatedtype">Float</a>: <a class="trait" href="trait.FloatSample.html" title="trait dasp_sample::FloatSample">FloatSample</a> + <a class="trait" href="conv/trait.Duplex.html" title="trait dasp_sample::conv::Duplex">Duplex</a>&lt;Self&gt;;
const <a href="#associatedconstant.EQUILIBRIUM" class="constant">EQUILIBRIUM</a>: Self;
const <a href="#associatedconstant.IDENTITY" class="constant">IDENTITY</a>: Self::<a class="associatedtype" href="trait.Sample.html#associatedtype.Float" title="type dasp_sample::Sample::Float">Float</a> = &lt;Self::Float as FloatSample&gt;::IDENTITY;
// Provided methods
fn <a href="#method.to_sample" class="fn">to_sample</a>&lt;S&gt;(self) -&gt; S
<span class="where">where Self: <a class="trait" href="conv/trait.ToSample.html" title="trait dasp_sample::conv::ToSample">ToSample</a>&lt;S&gt;</span> { ... }
<span class="item-spacer"></span> fn <a href="#method.from_sample" class="fn">from_sample</a>&lt;S&gt;(s: S) -&gt; Self
<span class="where">where Self: <a class="trait" href="conv/trait.FromSample.html" title="trait dasp_sample::conv::FromSample">FromSample</a>&lt;S&gt;</span> { ... }
<span class="item-spacer"></span> fn <a href="#method.to_signed_sample" class="fn">to_signed_sample</a>(self) -&gt; Self::<a class="associatedtype" href="trait.Sample.html#associatedtype.Signed" title="type dasp_sample::Sample::Signed">Signed</a> { ... }
<span class="item-spacer"></span> fn <a href="#method.to_float_sample" class="fn">to_float_sample</a>(self) -&gt; Self::<a class="associatedtype" href="trait.Sample.html#associatedtype.Float" title="type dasp_sample::Sample::Float">Float</a> { ... }
<span class="item-spacer"></span> fn <a href="#method.add_amp" class="fn">add_amp</a>(self, amp: Self::<a class="associatedtype" href="trait.Sample.html#associatedtype.Signed" title="type dasp_sample::Sample::Signed">Signed</a>) -&gt; Self { ... }
<span class="item-spacer"></span> fn <a href="#method.mul_amp" class="fn">mul_amp</a>(self, amp: Self::<a class="associatedtype" href="trait.Sample.html#associatedtype.Float" title="type dasp_sample::Sample::Float">Float</a>) -&gt; Self { ... }
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A trait for working generically across different <strong>Sample</strong> format types.</p>
<p>Provides methods for converting to and from any type that implements the
<a href="./trait.FromSample.html"><code>FromSample</code></a> trait and provides methods for performing signal
amplitude addition and multiplication.</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="kw">use </span>dasp_sample::{I24, Sample};
<span class="kw">fn </span>main() {
<span class="macro">assert_eq!</span>((-<span class="number">1.0</span>).to_sample::&lt;u8&gt;(), <span class="number">0</span>);
<span class="macro">assert_eq!</span>(<span class="number">0.0</span>.to_sample::&lt;u8&gt;(), <span class="number">128</span>);
<span class="macro">assert_eq!</span>(<span class="number">0i32</span>.to_sample::&lt;u32&gt;(), <span class="number">2_147_483_648</span>);
<span class="macro">assert_eq!</span>(I24::new(<span class="number">0</span>).unwrap(), Sample::from_sample(<span class="number">0.0</span>));
<span class="macro">assert_eq!</span>(<span class="number">0.0</span>, Sample::EQUILIBRIUM);
}</code></pre></div>
</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.EQUILIBRIUM" class="method"><a class="src rightside" href="../src/dasp_sample/lib.rs.html#86">Source</a><h4 class="code-header">const <a href="#associatedconstant.EQUILIBRIUM" class="constant">EQUILIBRIUM</a>: Self</h4></section></summary><div class="docblock"><p>The equilibrium value for the wave that this <code>Sample</code> type represents. This is normally the
value that is equal distance from both the min and max ranges of the sample.</p>
<h5 id="example-1"><a class="doc-anchor" href="#example-1">§</a>Example</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>dasp_sample::Sample;
<span class="kw">fn </span>main() {
<span class="macro">assert_eq!</span>(<span class="number">0.0</span>, f32::EQUILIBRIUM);
<span class="macro">assert_eq!</span>(<span class="number">0</span>, i32::EQUILIBRIUM);
<span class="macro">assert_eq!</span>(<span class="number">128</span>, u8::EQUILIBRIUM);
<span class="macro">assert_eq!</span>(<span class="number">32_768_u16</span>, Sample::EQUILIBRIUM);
}</code></pre></div>
<p><strong>Note:</strong> This will likely be changed to an “associated const” if the feature lands.</p>
</div></details></div><h2 id="provided-associated-consts" class="section-header">Provided Associated Constants<a href="#provided-associated-consts" class="anchor">§</a></h2><div class="methods"><details class="toggle" open><summary><section id="associatedconstant.IDENTITY" class="method"><a class="src rightside" href="../src/dasp_sample/lib.rs.html#107">Source</a><h4 class="code-header">const <a href="#associatedconstant.IDENTITY" class="constant">IDENTITY</a>: Self::<a class="associatedtype" href="trait.Sample.html#associatedtype.Float" title="type dasp_sample::Sample::Float">Float</a> = &lt;Self::Float as FloatSample&gt;::IDENTITY</h4></section></summary><div class="docblock"><p>The multiplicative identity of the signal.</p>
<p>In other words: A value which when used to scale/multiply the amplitude or frequency of a
signal, returns the same signal.</p>
<p>This is useful as a default, non-affecting amplitude or frequency multiplier.</p>
<h5 id="example-2"><a class="doc-anchor" href="#example-2">§</a>Example</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>dasp_sample::{Sample, U48};
<span class="kw">fn </span>main() {
<span class="macro">assert_eq!</span>(<span class="number">1.0</span>, f32::IDENTITY);
<span class="macro">assert_eq!</span>(<span class="number">1.0</span>, i8::IDENTITY);
<span class="macro">assert_eq!</span>(<span class="number">1.0</span>, u8::IDENTITY);
<span class="macro">assert_eq!</span>(<span class="number">1.0</span>, U48::IDENTITY);
}</code></pre></div>
</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.Signed" class="method"><a class="src rightside" href="../src/dasp_sample/lib.rs.html#52">Source</a><h4 class="code-header">type <a href="#associatedtype.Signed" class="associatedtype">Signed</a>: <a class="trait" href="trait.SignedSample.html" title="trait dasp_sample::SignedSample">SignedSample</a> + <a class="trait" href="conv/trait.Duplex.html" title="trait dasp_sample::conv::Duplex">Duplex</a>&lt;Self&gt;</h4></section></summary><div class="docblock"><p>When summing two samples of a signal together, it is necessary for both samples to be
represented in some signed format. This associated <code>Addition</code> type represents the format to
which <code>Self</code> should be converted for optimal <code>Addition</code> performance.</p>
<p>For example, u32s optimal <code>Addition</code> type would be i32, u8s would be i8, f32s would be
f32, etc.</p>
<p>Specifying this as an associated type allows us to automatically determine the optimal,
lossless Addition format type for summing any two unique <code>Sample</code> types together.</p>
<p>As a user of the <code>sample</code> crate, you will never need to be concerned with this type unless
you are defining your own unique <code>Sample</code> type(s).</p>
</div></details><details class="toggle" open><summary><section id="associatedtype.Float" class="method"><a class="src rightside" href="../src/dasp_sample/lib.rs.html#67">Source</a><h4 class="code-header">type <a href="#associatedtype.Float" class="associatedtype">Float</a>: <a class="trait" href="trait.FloatSample.html" title="trait dasp_sample::FloatSample">FloatSample</a> + <a class="trait" href="conv/trait.Duplex.html" title="trait dasp_sample::conv::Duplex">Duplex</a>&lt;Self&gt;</h4></section></summary><div class="docblock"><p>When multiplying two samples of a signal together, it is necessary for both samples to be
represented in some signed, floating-point format. This associated <code>Multiplication</code> type
represents the format to which <code>Self</code> should be converted for optimal <code>Multiplication</code>
performance.</p>
<p>For example, u32s optimal <code>Multiplication</code> type would be f32, u64s would be f64, i8s
would be f32, etc.</p>
<p>Specifying this as an associated type allows us to automatically determine the optimal,
lossless Multiplication format type for multiplying any two unique <code>Sample</code> types together.</p>
<p>As a user of the <code>sample</code> crate, you will never need to be concerned with this type unless
you are defining your own unique <code>Sample</code> type(s).</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.to_sample" class="method"><a class="src rightside" href="../src/dasp_sample/lib.rs.html#125-130">Source</a><h4 class="code-header">fn <a href="#method.to_sample" class="fn">to_sample</a>&lt;S&gt;(self) -&gt; S<div class="where">where
Self: <a class="trait" href="conv/trait.ToSample.html" title="trait dasp_sample::conv::ToSample">ToSample</a>&lt;S&gt;,</div></h4></section></summary><div class="docblock"><p>Convert <code>self</code> to any type that implements <code>FromSample&lt;Self&gt;</code>.</p>
<p>Find more details on type-specific conversion ranges and caveats in the <code>conv</code> module.</p>
<h5 id="example-3"><a class="doc-anchor" href="#example-3">§</a>Example</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>dasp_sample::Sample;
<span class="kw">fn </span>main() {
<span class="macro">assert_eq!</span>(<span class="number">0.0</span>.to_sample::&lt;i32&gt;(), <span class="number">0</span>);
<span class="macro">assert_eq!</span>(<span class="number">0.0</span>.to_sample::&lt;u8&gt;(), <span class="number">128</span>);
<span class="macro">assert_eq!</span>((-<span class="number">1.0</span>).to_sample::&lt;u8&gt;(), <span class="number">0</span>);
}</code></pre></div>
</div></details><details class="toggle method-toggle" open><summary><section id="method.from_sample" class="method"><a class="src rightside" href="../src/dasp_sample/lib.rs.html#149-154">Source</a><h4 class="code-header">fn <a href="#method.from_sample" class="fn">from_sample</a>&lt;S&gt;(s: S) -&gt; Self<div class="where">where
Self: <a class="trait" href="conv/trait.FromSample.html" title="trait dasp_sample::conv::FromSample">FromSample</a>&lt;S&gt;,</div></h4></section></summary><div class="docblock"><p>Create a <code>Self</code> from any type that implements <code>ToSample&lt;Self&gt;</code>.</p>
<p>Find more details on type-specific conversion ranges and caveats in the <code>conv</code> module.</p>
<h5 id="example-4"><a class="doc-anchor" href="#example-4">§</a>Example</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>dasp_sample::{Sample, I24};
<span class="kw">fn </span>main() {
<span class="macro">assert_eq!</span>(f32::from_sample(<span class="number">128_u8</span>), <span class="number">0.0</span>);
<span class="macro">assert_eq!</span>(i8::from_sample(-<span class="number">1.0</span>), -<span class="number">128</span>);
<span class="macro">assert_eq!</span>(I24::from_sample(<span class="number">0.0</span>), I24::new(<span class="number">0</span>).unwrap());
}</code></pre></div>
</div></details><details class="toggle method-toggle" open><summary><section id="method.to_signed_sample" class="method"><a class="src rightside" href="../src/dasp_sample/lib.rs.html#170-172">Source</a><h4 class="code-header">fn <a href="#method.to_signed_sample" class="fn">to_signed_sample</a>(self) -&gt; Self::<a class="associatedtype" href="trait.Sample.html#associatedtype.Signed" title="type dasp_sample::Sample::Signed">Signed</a></h4></section></summary><div class="docblock"><p>Converts <code>self</code> to the equivalent <code>Sample</code> in the associated <code>Signed</code> format.</p>
<p>This is a simple wrapper around <code>Sample::to_sample</code> which may provide extra convenience in
some cases, particularly for assisting type inference.</p>
<h5 id="example-5"><a class="doc-anchor" href="#example-5">§</a>Example</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>dasp_sample::Sample;
<span class="kw">fn </span>main() {
<span class="macro">assert_eq!</span>(<span class="number">128_u8</span>.to_signed_sample(), <span class="number">0i8</span>);
}</code></pre></div>
</div></details><details class="toggle method-toggle" open><summary><section id="method.to_float_sample" class="method"><a class="src rightside" href="../src/dasp_sample/lib.rs.html#188-190">Source</a><h4 class="code-header">fn <a href="#method.to_float_sample" class="fn">to_float_sample</a>(self) -&gt; Self::<a class="associatedtype" href="trait.Sample.html#associatedtype.Float" title="type dasp_sample::Sample::Float">Float</a></h4></section></summary><div class="docblock"><p>Converts <code>self</code> to the equivalent <code>Sample</code> in the associated <code>Float</code> format.</p>
<p>This is a simple wrapper around <code>Sample::to_sample</code> which may provide extra convenience in
some cases, particularly for assisting type inference.</p>
<h5 id="example-6"><a class="doc-anchor" href="#example-6">§</a>Example</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>dasp_sample::Sample;
<span class="kw">fn </span>main() {
<span class="macro">assert_eq!</span>(<span class="number">128_u8</span>.to_float_sample(), <span class="number">0.0</span>);
}</code></pre></div>
</div></details><details class="toggle method-toggle" open><summary><section id="method.add_amp" class="method"><a class="src rightside" href="../src/dasp_sample/lib.rs.html#209-212">Source</a><h4 class="code-header">fn <a href="#method.add_amp" class="fn">add_amp</a>(self, amp: Self::<a class="associatedtype" href="trait.Sample.html#associatedtype.Signed" title="type dasp_sample::Sample::Signed">Signed</a>) -&gt; Self</h4></section></summary><div class="docblock"><p>Adds (or “offsets”) the amplitude of the <code>Sample</code> by the given signed amplitude.</p>
<p><code>Self</code> will be converted to <code>Self::Signed</code>, the addition will occur and then the result
will be converted back to <code>Self</code>. These conversions allow us to correctly handle the
addition of unsigned signal formats.</p>
<h5 id="example-7"><a class="doc-anchor" href="#example-7">§</a>Example</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>dasp_sample::Sample;
<span class="kw">fn </span>main() {
<span class="macro">assert_eq!</span>(<span class="number">0.25</span>.add_amp(<span class="number">0.5</span>), <span class="number">0.75</span>);
<span class="macro">assert_eq!</span>(<span class="number">192u8</span>.add_amp(-<span class="number">128</span>), <span class="number">64</span>);
}</code></pre></div>
</div></details><details class="toggle method-toggle" open><summary><section id="method.mul_amp" class="method"><a class="src rightside" href="../src/dasp_sample/lib.rs.html#237-240">Source</a><h4 class="code-header">fn <a href="#method.mul_amp" class="fn">mul_amp</a>(self, amp: Self::<a class="associatedtype" href="trait.Sample.html#associatedtype.Float" title="type dasp_sample::Sample::Float">Float</a>) -&gt; Self</h4></section></summary><div class="docblock"><p>Multiplies (or “scales”) the amplitude of the <code>Sample</code> by the given float amplitude.</p>
<ul>
<li><code>amp</code> &gt; 1.0 amplifies the sample.</li>
<li><code>amp</code> &lt; 1.0 attenuates the sample.</li>
<li><code>amp</code> == 1.0 yields the same sample.</li>
<li><code>amp</code> == 0.0 yields the <code>Sample::EQUILIBRIUM</code>.</li>
</ul>
<p><code>Self</code> will be converted to <code>Self::Float</code>, the multiplication will occur and then the
result will be converted back to <code>Self</code>. These conversions allow us to correctly handle the
multiplication of integral signal formats.</p>
<h5 id="example-8"><a class="doc-anchor" href="#example-8">§</a>Example</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>dasp_sample::Sample;
<span class="kw">fn </span>main() {
<span class="macro">assert_eq!</span>(<span class="number">64_i8</span>.mul_amp(<span class="number">0.5</span>), <span class="number">32</span>);
<span class="macro">assert_eq!</span>(<span class="number">0.5</span>.mul_amp(-<span class="number">2.0</span>), -<span class="number">1.0</span>);
<span class="macro">assert_eq!</span>(<span class="number">64_u8</span>.mul_amp(<span class="number">0.0</span>), <span class="number">128</span>);
}</code></pre></div>
</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-Sample-for-f32" class="impl"><a class="src rightside" href="../src/dasp_sample/lib.rs.html#261-276">Source</a><a href="#impl-Sample-for-f32" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Sample.html" title="trait dasp_sample::Sample">Sample</a> for <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a></h3></section></summary><div class="impl-items"><section id="associatedconstant.EQUILIBRIUM-1" class="associatedconstant trait-impl"><a class="src rightside" href="../src/dasp_sample/lib.rs.html#261-276">Source</a><a href="#associatedconstant.EQUILIBRIUM-1" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.EQUILIBRIUM" class="constant">EQUILIBRIUM</a>: Self = 0f32</h4></section><section id="associatedtype.Signed-1" class="associatedtype trait-impl"><a class="src rightside" href="../src/dasp_sample/lib.rs.html#261-276">Source</a><a href="#associatedtype.Signed-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Signed" class="associatedtype">Signed</a> = <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a></h4></section><section id="associatedtype.Float-1" class="associatedtype trait-impl"><a class="src rightside" href="../src/dasp_sample/lib.rs.html#261-276">Source</a><a href="#associatedtype.Float-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Float" class="associatedtype">Float</a> = <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Sample-for-f64" class="impl"><a class="src rightside" href="../src/dasp_sample/lib.rs.html#261-276">Source</a><a href="#impl-Sample-for-f64" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Sample.html" title="trait dasp_sample::Sample">Sample</a> for <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f64.html">f64</a></h3></section></summary><div class="impl-items"><section id="associatedconstant.EQUILIBRIUM-2" class="associatedconstant trait-impl"><a class="src rightside" href="../src/dasp_sample/lib.rs.html#261-276">Source</a><a href="#associatedconstant.EQUILIBRIUM-2" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.EQUILIBRIUM" class="constant">EQUILIBRIUM</a>: Self = 0f64</h4></section><section id="associatedtype.Signed-2" class="associatedtype trait-impl"><a class="src rightside" href="../src/dasp_sample/lib.rs.html#261-276">Source</a><a href="#associatedtype.Signed-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Signed" class="associatedtype">Signed</a> = <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f64.html">f64</a></h4></section><section id="associatedtype.Float-2" class="associatedtype trait-impl"><a class="src rightside" href="../src/dasp_sample/lib.rs.html#261-276">Source</a><a href="#associatedtype.Float-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Float" class="associatedtype">Float</a> = <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f64.html">f64</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Sample-for-i8" class="impl"><a class="src rightside" href="../src/dasp_sample/lib.rs.html#261-276">Source</a><a href="#impl-Sample-for-i8" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Sample.html" title="trait dasp_sample::Sample">Sample</a> for <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.i8.html">i8</a></h3></section></summary><div class="impl-items"><section id="associatedconstant.EQUILIBRIUM-3" class="associatedconstant trait-impl"><a class="src rightside" href="../src/dasp_sample/lib.rs.html#261-276">Source</a><a href="#associatedconstant.EQUILIBRIUM-3" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.EQUILIBRIUM" class="constant">EQUILIBRIUM</a>: Self = 0i8</h4></section><section id="associatedtype.Signed-3" class="associatedtype trait-impl"><a class="src rightside" href="../src/dasp_sample/lib.rs.html#261-276">Source</a><a href="#associatedtype.Signed-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Signed" class="associatedtype">Signed</a> = <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.i8.html">i8</a></h4></section><section id="associatedtype.Float-3" class="associatedtype trait-impl"><a class="src rightside" href="../src/dasp_sample/lib.rs.html#261-276">Source</a><a href="#associatedtype.Float-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Float" class="associatedtype">Float</a> = <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Sample-for-i16" class="impl"><a class="src rightside" href="../src/dasp_sample/lib.rs.html#261-276">Source</a><a href="#impl-Sample-for-i16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Sample.html" title="trait dasp_sample::Sample">Sample</a> for <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.i16.html">i16</a></h3></section></summary><div class="impl-items"><section id="associatedconstant.EQUILIBRIUM-4" class="associatedconstant trait-impl"><a class="src rightside" href="../src/dasp_sample/lib.rs.html#261-276">Source</a><a href="#associatedconstant.EQUILIBRIUM-4" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.EQUILIBRIUM" class="constant">EQUILIBRIUM</a>: Self = 0i16</h4></section><section id="associatedtype.Signed-4" class="associatedtype trait-impl"><a class="src rightside" href="../src/dasp_sample/lib.rs.html#261-276">Source</a><a href="#associatedtype.Signed-4" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Signed" class="associatedtype">Signed</a> = <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.i16.html">i16</a></h4></section><section id="associatedtype.Float-4" class="associatedtype trait-impl"><a class="src rightside" href="../src/dasp_sample/lib.rs.html#261-276">Source</a><a href="#associatedtype.Float-4" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Float" class="associatedtype">Float</a> = <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Sample-for-i32" class="impl"><a class="src rightside" href="../src/dasp_sample/lib.rs.html#261-276">Source</a><a href="#impl-Sample-for-i32" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Sample.html" title="trait dasp_sample::Sample">Sample</a> for <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.i32.html">i32</a></h3></section></summary><div class="impl-items"><section id="associatedconstant.EQUILIBRIUM-5" class="associatedconstant trait-impl"><a class="src rightside" href="../src/dasp_sample/lib.rs.html#261-276">Source</a><a href="#associatedconstant.EQUILIBRIUM-5" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.EQUILIBRIUM" class="constant">EQUILIBRIUM</a>: Self = 0i32</h4></section><section id="associatedtype.Signed-5" class="associatedtype trait-impl"><a class="src rightside" href="../src/dasp_sample/lib.rs.html#261-276">Source</a><a href="#associatedtype.Signed-5" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Signed" class="associatedtype">Signed</a> = <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.i32.html">i32</a></h4></section><section id="associatedtype.Float-5" class="associatedtype trait-impl"><a class="src rightside" href="../src/dasp_sample/lib.rs.html#261-276">Source</a><a href="#associatedtype.Float-5" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Float" class="associatedtype">Float</a> = <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Sample-for-i64" class="impl"><a class="src rightside" href="../src/dasp_sample/lib.rs.html#261-276">Source</a><a href="#impl-Sample-for-i64" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Sample.html" title="trait dasp_sample::Sample">Sample</a> for <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.i64.html">i64</a></h3></section></summary><div class="impl-items"><section id="associatedconstant.EQUILIBRIUM-6" class="associatedconstant trait-impl"><a class="src rightside" href="../src/dasp_sample/lib.rs.html#261-276">Source</a><a href="#associatedconstant.EQUILIBRIUM-6" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.EQUILIBRIUM" class="constant">EQUILIBRIUM</a>: Self = 0i64</h4></section><section id="associatedtype.Signed-6" class="associatedtype trait-impl"><a class="src rightside" href="../src/dasp_sample/lib.rs.html#261-276">Source</a><a href="#associatedtype.Signed-6" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Signed" class="associatedtype">Signed</a> = <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.i64.html">i64</a></h4></section><section id="associatedtype.Float-6" class="associatedtype trait-impl"><a class="src rightside" href="../src/dasp_sample/lib.rs.html#261-276">Source</a><a href="#associatedtype.Float-6" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Float" class="associatedtype">Float</a> = <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f64.html">f64</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Sample-for-u8" class="impl"><a class="src rightside" href="../src/dasp_sample/lib.rs.html#261-276">Source</a><a href="#impl-Sample-for-u8" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Sample.html" title="trait dasp_sample::Sample">Sample</a> for <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.u8.html">u8</a></h3></section></summary><div class="impl-items"><section id="associatedconstant.EQUILIBRIUM-7" class="associatedconstant trait-impl"><a class="src rightside" href="../src/dasp_sample/lib.rs.html#261-276">Source</a><a href="#associatedconstant.EQUILIBRIUM-7" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.EQUILIBRIUM" class="constant">EQUILIBRIUM</a>: Self = 128u8</h4></section><section id="associatedtype.Signed-7" class="associatedtype trait-impl"><a class="src rightside" href="../src/dasp_sample/lib.rs.html#261-276">Source</a><a href="#associatedtype.Signed-7" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Signed" class="associatedtype">Signed</a> = <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.i8.html">i8</a></h4></section><section id="associatedtype.Float-7" class="associatedtype trait-impl"><a class="src rightside" href="../src/dasp_sample/lib.rs.html#261-276">Source</a><a href="#associatedtype.Float-7" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Float" class="associatedtype">Float</a> = <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Sample-for-u16" class="impl"><a class="src rightside" href="../src/dasp_sample/lib.rs.html#261-276">Source</a><a href="#impl-Sample-for-u16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Sample.html" title="trait dasp_sample::Sample">Sample</a> for <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.u16.html">u16</a></h3></section></summary><div class="impl-items"><section id="associatedconstant.EQUILIBRIUM-8" class="associatedconstant trait-impl"><a class="src rightside" href="../src/dasp_sample/lib.rs.html#261-276">Source</a><a href="#associatedconstant.EQUILIBRIUM-8" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.EQUILIBRIUM" class="constant">EQUILIBRIUM</a>: Self = 32_768u16</h4></section><section id="associatedtype.Signed-8" class="associatedtype trait-impl"><a class="src rightside" href="../src/dasp_sample/lib.rs.html#261-276">Source</a><a href="#associatedtype.Signed-8" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Signed" class="associatedtype">Signed</a> = <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.i16.html">i16</a></h4></section><section id="associatedtype.Float-8" class="associatedtype trait-impl"><a class="src rightside" href="../src/dasp_sample/lib.rs.html#261-276">Source</a><a href="#associatedtype.Float-8" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Float" class="associatedtype">Float</a> = <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Sample-for-u32" class="impl"><a class="src rightside" href="../src/dasp_sample/lib.rs.html#261-276">Source</a><a href="#impl-Sample-for-u32" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Sample.html" title="trait dasp_sample::Sample">Sample</a> for <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.u32.html">u32</a></h3></section></summary><div class="impl-items"><section id="associatedconstant.EQUILIBRIUM-9" class="associatedconstant trait-impl"><a class="src rightside" href="../src/dasp_sample/lib.rs.html#261-276">Source</a><a href="#associatedconstant.EQUILIBRIUM-9" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.EQUILIBRIUM" class="constant">EQUILIBRIUM</a>: Self = 2_147_483_648u32</h4></section><section id="associatedtype.Signed-9" class="associatedtype trait-impl"><a class="src rightside" href="../src/dasp_sample/lib.rs.html#261-276">Source</a><a href="#associatedtype.Signed-9" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Signed" class="associatedtype">Signed</a> = <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.i32.html">i32</a></h4></section><section id="associatedtype.Float-9" class="associatedtype trait-impl"><a class="src rightside" href="../src/dasp_sample/lib.rs.html#261-276">Source</a><a href="#associatedtype.Float-9" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Float" class="associatedtype">Float</a> = <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Sample-for-u64" class="impl"><a class="src rightside" href="../src/dasp_sample/lib.rs.html#261-276">Source</a><a href="#impl-Sample-for-u64" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Sample.html" title="trait dasp_sample::Sample">Sample</a> for <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.u64.html">u64</a></h3></section></summary><div class="impl-items"><section id="associatedconstant.EQUILIBRIUM-10" class="associatedconstant trait-impl"><a class="src rightside" href="../src/dasp_sample/lib.rs.html#261-276">Source</a><a href="#associatedconstant.EQUILIBRIUM-10" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.EQUILIBRIUM" class="constant">EQUILIBRIUM</a>: Self = 9_223_372_036_854_775_808u64</h4></section><section id="associatedtype.Signed-10" class="associatedtype trait-impl"><a class="src rightside" href="../src/dasp_sample/lib.rs.html#261-276">Source</a><a href="#associatedtype.Signed-10" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Signed" class="associatedtype">Signed</a> = <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.i64.html">i64</a></h4></section><section id="associatedtype.Float-10" class="associatedtype trait-impl"><a class="src rightside" href="../src/dasp_sample/lib.rs.html#261-276">Source</a><a href="#associatedtype.Float-10" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Float" class="associatedtype">Float</a> = <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f64.html">f64</a></h4></section></div></details><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><details class="toggle implementors-toggle"><summary><section id="impl-Sample-for-I24" class="impl"><a class="src rightside" href="../src/dasp_sample/lib.rs.html#261-276">Source</a><a href="#impl-Sample-for-I24" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Sample.html" title="trait dasp_sample::Sample">Sample</a> for <a class="struct" href="types/i24/struct.I24.html" title="struct dasp_sample::types::i24::I24">I24</a></h3></section></summary><div class="impl-items"><section id="associatedconstant.EQUILIBRIUM-11" class="associatedconstant trait-impl"><a class="src rightside" href="../src/dasp_sample/lib.rs.html#261-276">Source</a><a href="#associatedconstant.EQUILIBRIUM-11" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.EQUILIBRIUM" class="constant">EQUILIBRIUM</a>: Self = types::i24::EQUILIBRIUM</h4></section><section id="associatedtype.Signed-11" class="associatedtype trait-impl"><a class="src rightside" href="../src/dasp_sample/lib.rs.html#261-276">Source</a><a href="#associatedtype.Signed-11" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Signed" class="associatedtype">Signed</a> = <a class="struct" href="types/i24/struct.I24.html" title="struct dasp_sample::types::i24::I24">I24</a></h4></section><section id="associatedtype.Float-11" class="associatedtype trait-impl"><a class="src rightside" href="../src/dasp_sample/lib.rs.html#261-276">Source</a><a href="#associatedtype.Float-11" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Float" class="associatedtype">Float</a> = <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Sample-for-I48" class="impl"><a class="src rightside" href="../src/dasp_sample/lib.rs.html#261-276">Source</a><a href="#impl-Sample-for-I48" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Sample.html" title="trait dasp_sample::Sample">Sample</a> for <a class="struct" href="types/i48/struct.I48.html" title="struct dasp_sample::types::i48::I48">I48</a></h3></section></summary><div class="impl-items"><section id="associatedconstant.EQUILIBRIUM-12" class="associatedconstant trait-impl"><a class="src rightside" href="../src/dasp_sample/lib.rs.html#261-276">Source</a><a href="#associatedconstant.EQUILIBRIUM-12" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.EQUILIBRIUM" class="constant">EQUILIBRIUM</a>: Self = types::i48::EQUILIBRIUM</h4></section><section id="associatedtype.Signed-12" class="associatedtype trait-impl"><a class="src rightside" href="../src/dasp_sample/lib.rs.html#261-276">Source</a><a href="#associatedtype.Signed-12" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Signed" class="associatedtype">Signed</a> = <a class="struct" href="types/i48/struct.I48.html" title="struct dasp_sample::types::i48::I48">I48</a></h4></section><section id="associatedtype.Float-12" class="associatedtype trait-impl"><a class="src rightside" href="../src/dasp_sample/lib.rs.html#261-276">Source</a><a href="#associatedtype.Float-12" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Float" class="associatedtype">Float</a> = <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f64.html">f64</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Sample-for-U24" class="impl"><a class="src rightside" href="../src/dasp_sample/lib.rs.html#261-276">Source</a><a href="#impl-Sample-for-U24" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Sample.html" title="trait dasp_sample::Sample">Sample</a> for <a class="struct" href="types/u24/struct.U24.html" title="struct dasp_sample::types::u24::U24">U24</a></h3></section></summary><div class="impl-items"><section id="associatedconstant.EQUILIBRIUM-13" class="associatedconstant trait-impl"><a class="src rightside" href="../src/dasp_sample/lib.rs.html#261-276">Source</a><a href="#associatedconstant.EQUILIBRIUM-13" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.EQUILIBRIUM" class="constant">EQUILIBRIUM</a>: Self = types::u24::EQUILIBRIUM</h4></section><section id="associatedtype.Signed-13" class="associatedtype trait-impl"><a class="src rightside" href="../src/dasp_sample/lib.rs.html#261-276">Source</a><a href="#associatedtype.Signed-13" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Signed" class="associatedtype">Signed</a> = <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.i32.html">i32</a></h4></section><section id="associatedtype.Float-13" class="associatedtype trait-impl"><a class="src rightside" href="../src/dasp_sample/lib.rs.html#261-276">Source</a><a href="#associatedtype.Float-13" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Float" class="associatedtype">Float</a> = <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f32.html">f32</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Sample-for-U48" class="impl"><a class="src rightside" href="../src/dasp_sample/lib.rs.html#261-276">Source</a><a href="#impl-Sample-for-U48" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Sample.html" title="trait dasp_sample::Sample">Sample</a> for <a class="struct" href="types/u48/struct.U48.html" title="struct dasp_sample::types::u48::U48">U48</a></h3></section></summary><div class="impl-items"><section id="associatedconstant.EQUILIBRIUM-14" class="associatedconstant trait-impl"><a class="src rightside" href="../src/dasp_sample/lib.rs.html#261-276">Source</a><a href="#associatedconstant.EQUILIBRIUM-14" class="anchor">§</a><h4 class="code-header">const <a href="#associatedconstant.EQUILIBRIUM" class="constant">EQUILIBRIUM</a>: Self = types::u48::EQUILIBRIUM</h4></section><section id="associatedtype.Signed-14" class="associatedtype trait-impl"><a class="src rightside" href="../src/dasp_sample/lib.rs.html#261-276">Source</a><a href="#associatedtype.Signed-14" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Signed" class="associatedtype">Signed</a> = <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.i64.html">i64</a></h4></section><section id="associatedtype.Float-14" class="associatedtype trait-impl"><a class="src rightside" href="../src/dasp_sample/lib.rs.html#261-276">Source</a><a href="#associatedtype.Float-14" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Float" class="associatedtype">Float</a> = <a class="primitive" href="https://doc.rust-lang.org/1.84.0/std/primitive.f64.html">f64</a></h4></section></div></details></div><script src="../trait.impl/dasp_sample/trait.Sample.js" data-ignore-extern-crates="std" async></script></section></div></main></body></html>