diff options
Diffstat (limited to 'rust/theBook/chapter-2-guessing-game/guessing_game/target/doc/rand/distributions/struct.Standard.html')
-rw-r--r-- | rust/theBook/chapter-2-guessing-game/guessing_game/target/doc/rand/distributions/struct.Standard.html | 216 |
1 files changed, 216 insertions, 0 deletions
diff --git a/rust/theBook/chapter-2-guessing-game/guessing_game/target/doc/rand/distributions/struct.Standard.html b/rust/theBook/chapter-2-guessing-game/guessing_game/target/doc/rand/distributions/struct.Standard.html new file mode 100644 index 0000000..2a0b9da --- /dev/null +++ b/rust/theBook/chapter-2-guessing-game/guessing_game/target/doc/rand/distributions/struct.Standard.html @@ -0,0 +1,216 @@ +<!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 generic random value distribution, implemented for many primitive types. Usually generates values with a numerically uniform distribution, and with a range appropriate to the type."><meta name="keywords" content="rust, rustlang, rust-lang, Standard"><title>Standard in rand::distributions - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" href="../../normalize.css"><link rel="stylesheet" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" href="../../ayu.css" disabled><link rel="stylesheet" href="../../dark.css" disabled><link rel="stylesheet" href="../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../storage.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../main.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="icon" href="https://www.rust-lang.org/favicon.ico"></head><body class="rustdoc struct"><!--[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">☰</button><a class="sidebar-logo" href="../../rand/index.html"><div class="logo-container"><img src="https://www.rust-lang.org/logos/rust-logo-128x128-blk.png" alt="logo"></div></a><h2></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../rand/index.html"><div class="logo-container"> + <img src="https://www.rust-lang.org/logos/rust-logo-128x128-blk.png" alt="logo"></div></a><h2 class="location"><a href="#">Standard</a></h2><div class="sidebar-elems"><section><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block"><li><a href="#impl-Clone-for-Standard">Clone</a></li><li><a href="#impl-Copy-for-Standard">Copy</a></li><li><a href="#impl-Debug-for-Standard">Debug</a></li><li><a href="#impl-DistString-for-Standard">DistString</a></li><li><a href="#impl-Distribution%3C%5BT%3B%200%5D%3E-for-Standard">Distribution<[T; 0]></a></li><li><a href="#impl-Distribution%3C%5BT%3B%201%5D%3E-for-Standard">Distribution<[T; 1]></a></li><li><a href="#impl-Distribution%3C%5BT%3B%2010%5D%3E-for-Standard">Distribution<[T; 10]></a></li><li><a href="#impl-Distribution%3C%5BT%3B%2011%5D%3E-for-Standard">Distribution<[T; 11]></a></li><li><a href="#impl-Distribution%3C%5BT%3B%2012%5D%3E-for-Standard">Distribution<[T; 12]></a></li><li><a href="#impl-Distribution%3C%5BT%3B%2013%5D%3E-for-Standard">Distribution<[T; 13]></a></li><li><a href="#impl-Distribution%3C%5BT%3B%2014%5D%3E-for-Standard">Distribution<[T; 14]></a></li><li><a href="#impl-Distribution%3C%5BT%3B%2015%5D%3E-for-Standard">Distribution<[T; 15]></a></li><li><a href="#impl-Distribution%3C%5BT%3B%2016%5D%3E-for-Standard">Distribution<[T; 16]></a></li><li><a href="#impl-Distribution%3C%5BT%3B%2017%5D%3E-for-Standard">Distribution<[T; 17]></a></li><li><a href="#impl-Distribution%3C%5BT%3B%2018%5D%3E-for-Standard">Distribution<[T; 18]></a></li><li><a href="#impl-Distribution%3C%5BT%3B%2019%5D%3E-for-Standard">Distribution<[T; 19]></a></li><li><a href="#impl-Distribution%3C%5BT%3B%202%5D%3E-for-Standard">Distribution<[T; 2]></a></li><li><a href="#impl-Distribution%3C%5BT%3B%2020%5D%3E-for-Standard">Distribution<[T; 20]></a></li><li><a href="#impl-Distribution%3C%5BT%3B%2021%5D%3E-for-Standard">Distribution<[T; 21]></a></li><li><a href="#impl-Distribution%3C%5BT%3B%2022%5D%3E-for-Standard">Distribution<[T; 22]></a></li><li><a href="#impl-Distribution%3C%5BT%3B%2023%5D%3E-for-Standard">Distribution<[T; 23]></a></li><li><a href="#impl-Distribution%3C%5BT%3B%2024%5D%3E-for-Standard">Distribution<[T; 24]></a></li><li><a href="#impl-Distribution%3C%5BT%3B%2025%5D%3E-for-Standard">Distribution<[T; 25]></a></li><li><a href="#impl-Distribution%3C%5BT%3B%2026%5D%3E-for-Standard">Distribution<[T; 26]></a></li><li><a href="#impl-Distribution%3C%5BT%3B%2027%5D%3E-for-Standard">Distribution<[T; 27]></a></li><li><a href="#impl-Distribution%3C%5BT%3B%2028%5D%3E-for-Standard">Distribution<[T; 28]></a></li><li><a href="#impl-Distribution%3C%5BT%3B%2029%5D%3E-for-Standard">Distribution<[T; 29]></a></li><li><a href="#impl-Distribution%3C%5BT%3B%203%5D%3E-for-Standard">Distribution<[T; 3]></a></li><li><a href="#impl-Distribution%3C%5BT%3B%2030%5D%3E-for-Standard">Distribution<[T; 30]></a></li><li><a href="#impl-Distribution%3C%5BT%3B%2031%5D%3E-for-Standard">Distribution<[T; 31]></a></li><li><a href="#impl-Distribution%3C%5BT%3B%2032%5D%3E-for-Standard">Distribution<[T; 32]></a></li><li><a href="#impl-Distribution%3C%5BT%3B%204%5D%3E-for-Standard">Distribution<[T; 4]></a></li><li><a href="#impl-Distribution%3C%5BT%3B%205%5D%3E-for-Standard">Distribution<[T; 5]></a></li><li><a href="#impl-Distribution%3C%5BT%3B%206%5D%3E-for-Standard">Distribution<[T; 6]></a></li><li><a href="#impl-Distribution%3C%5BT%3B%207%5D%3E-for-Standard">Distribution<[T; 7]></a></li><li><a href="#impl-Distribution%3C%5BT%3B%208%5D%3E-for-Standard">Distribution<[T; 8]></a></li><li><a href="#impl-Distribution%3C%5BT%3B%209%5D%3E-for-Standard">Distribution<[T; 9]></a></li><li><a href="#impl-Distribution%3C()%3E-for-Standard">Distribution<()></a></li><li><a href="#impl-Distribution%3C(A%2C%20B%2C%20C%2C%20D%2C%20E%2C%20F%2C%20G%2C%20H%2C%20I%2C%20J%2C%20K%2C%20L)%3E-for-Standard">Distribution<(A, B, C, D, E, F, G, H, I, J, K, L)></a></li><li><a href="#impl-Distribution%3C(A%2C%20B%2C%20C%2C%20D%2C%20E%2C%20F%2C%20G%2C%20H%2C%20I%2C%20J%2C%20K)%3E-for-Standard">Distribution<(A, B, C, D, E, F, G, H, I, J, K)></a></li><li><a href="#impl-Distribution%3C(A%2C%20B%2C%20C%2C%20D%2C%20E%2C%20F%2C%20G%2C%20H%2C%20I%2C%20J)%3E-for-Standard">Distribution<(A, B, C, D, E, F, G, H, I, J)></a></li><li><a href="#impl-Distribution%3C(A%2C%20B%2C%20C%2C%20D%2C%20E%2C%20F%2C%20G%2C%20H%2C%20I)%3E-for-Standard">Distribution<(A, B, C, D, E, F, G, H, I)></a></li><li><a href="#impl-Distribution%3C(A%2C%20B%2C%20C%2C%20D%2C%20E%2C%20F%2C%20G%2C%20H)%3E-for-Standard">Distribution<(A, B, C, D, E, F, G, H)></a></li><li><a href="#impl-Distribution%3C(A%2C%20B%2C%20C%2C%20D%2C%20E%2C%20F%2C%20G)%3E-for-Standard">Distribution<(A, B, C, D, E, F, G)></a></li><li><a href="#impl-Distribution%3C(A%2C%20B%2C%20C%2C%20D%2C%20E%2C%20F)%3E-for-Standard">Distribution<(A, B, C, D, E, F)></a></li><li><a href="#impl-Distribution%3C(A%2C%20B%2C%20C%2C%20D%2C%20E)%3E-for-Standard">Distribution<(A, B, C, D, E)></a></li><li><a href="#impl-Distribution%3C(A%2C%20B%2C%20C%2C%20D)%3E-for-Standard">Distribution<(A, B, C, D)></a></li><li><a href="#impl-Distribution%3C(A%2C%20B%2C%20C)%3E-for-Standard">Distribution<(A, B, C)></a></li><li><a href="#impl-Distribution%3C(A%2C%20B)%3E-for-Standard">Distribution<(A, B)></a></li><li><a href="#impl-Distribution%3C(A%2C)%3E-for-Standard">Distribution<(A,)></a></li><li><a href="#impl-Distribution%3CNonZeroU128%3E-for-Standard">Distribution<NonZeroU128></a></li><li><a href="#impl-Distribution%3CNonZeroU16%3E-for-Standard">Distribution<NonZeroU16></a></li><li><a href="#impl-Distribution%3CNonZeroU32%3E-for-Standard">Distribution<NonZeroU32></a></li><li><a href="#impl-Distribution%3CNonZeroU64%3E-for-Standard">Distribution<NonZeroU64></a></li><li><a href="#impl-Distribution%3CNonZeroU8%3E-for-Standard">Distribution<NonZeroU8></a></li><li><a href="#impl-Distribution%3CNonZeroUsize%3E-for-Standard">Distribution<NonZeroUsize></a></li><li><a href="#impl-Distribution%3COption%3CT%3E%3E-for-Standard">Distribution<Option<T>></a></li><li><a href="#impl-Distribution%3CWrapping%3CT%3E%3E-for-Standard">Distribution<Wrapping<T>></a></li><li><a href="#impl-Distribution%3Cbool%3E-for-Standard">Distribution<bool></a></li><li><a href="#impl-Distribution%3Cchar%3E-for-Standard">Distribution<char></a></li><li><a href="#impl-Distribution%3Cf32%3E-for-Standard">Distribution<f32></a></li><li><a href="#impl-Distribution%3Cf64%3E-for-Standard">Distribution<f64></a></li><li><a href="#impl-Distribution%3Ci128%3E-for-Standard">Distribution<i128></a></li><li><a href="#impl-Distribution%3Ci16%3E-for-Standard">Distribution<i16></a></li><li><a href="#impl-Distribution%3Ci32%3E-for-Standard">Distribution<i32></a></li><li><a href="#impl-Distribution%3Ci64%3E-for-Standard">Distribution<i64></a></li><li><a href="#impl-Distribution%3Ci8%3E-for-Standard">Distribution<i8></a></li><li><a href="#impl-Distribution%3Cisize%3E-for-Standard">Distribution<isize></a></li><li><a href="#impl-Distribution%3Cu128%3E-for-Standard">Distribution<u128></a></li><li><a href="#impl-Distribution%3Cu16%3E-for-Standard">Distribution<u16></a></li><li><a href="#impl-Distribution%3Cu32%3E-for-Standard">Distribution<u32></a></li><li><a href="#impl-Distribution%3Cu64%3E-for-Standard">Distribution<u64></a></li><li><a href="#impl-Distribution%3Cu8%3E-for-Standard">Distribution<u8></a></li><li><a href="#impl-Distribution%3Cusize%3E-for-Standard">Distribution<usize></a></li></ul><h3><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul class="block"><li><a href="#impl-RefUnwindSafe-for-Standard">RefUnwindSafe</a></li><li><a href="#impl-Send-for-Standard">Send</a></li><li><a href="#impl-Sync-for-Standard">Sync</a></li><li><a href="#impl-Unpin-for-Standard">Unpin</a></li><li><a href="#impl-UnwindSafe-for-Standard">UnwindSafe</a></li></ul><h3><a href="#blanket-implementations">Blanket Implementations</a></h3><ul class="block"><li><a href="#impl-Any-for-Standard">Any</a></li><li><a href="#impl-Borrow%3CT%3E-for-Standard">Borrow<T></a></li><li><a href="#impl-BorrowMut%3CT%3E-for-Standard">BorrowMut<T></a></li><li><a href="#impl-From%3CT%3E-for-Standard">From<T></a></li><li><a href="#impl-Into%3CU%3E-for-Standard">Into<U></a></li><li><a href="#impl-ToOwned-for-Standard">ToOwned</a></li><li><a href="#impl-TryFrom%3CU%3E-for-Standard">TryFrom<U></a></li><li><a href="#impl-TryInto%3CU%3E-for-Standard">TryInto<U></a></li><li><a href="#impl-VZip%3CV%3E-for-Standard">VZip<V></a></li></ul></section><h2><a href="index.html">In rand::distributions</a></h2></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../wheel.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn">Struct <a href="../index.html">rand</a>::<wbr><a href="index.html">distributions</a>::<wbr><a class="struct" href="#">Standard</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="srclink" href="../../src/rand/distributions/mod.rs.html#218">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="item-decl"><pre class="rust struct"><code>pub struct Standard;</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A generic random value distribution, implemented for many primitive types. +Usually generates values with a numerically uniform distribution, and with a +range appropriate to the type.</p> +<h3 id="provided-implementations"><a href="#provided-implementations">Provided implementations</a></h3> +<p>Assuming the provided <code>Rng</code> is well-behaved, these implementations +generate values with the following ranges and distributions:</p> +<ul> +<li>Integers (<code>i32</code>, <code>u32</code>, <code>isize</code>, <code>usize</code>, etc.): Uniformly distributed +over all values of the type.</li> +<li><code>char</code>: Uniformly distributed over all Unicode scalar values, i.e. all +code points in the range <code>0...0x10_FFFF</code>, except for the range +<code>0xD800...0xDFFF</code> (the surrogate code points). This includes +unassigned/reserved code points.</li> +<li><code>bool</code>: Generates <code>false</code> or <code>true</code>, each with probability 0.5.</li> +<li>Floating point types (<code>f32</code> and <code>f64</code>): Uniformly distributed in the +half-open range <code>[0, 1)</code>. See notes below.</li> +<li>Wrapping integers (<code>Wrapping<T></code>), besides the type identical to their +normal integer variants.</li> +</ul> +<p>The <code>Standard</code> distribution also supports generation of the following +compound types where all component types are supported:</p> +<ul> +<li>Tuples (up to 12 elements): each element is generated sequentially.</li> +<li>Arrays (up to 32 elements): each element is generated sequentially; +see also <a href="../trait.Rng.html#method.fill" title="Rng::fill"><code>Rng::fill</code></a> which supports arbitrary array length for integer +and float types and tends to be faster for <code>u32</code> and smaller types. +When using <code>rustc</code> ≥ 1.51, enable the <code>min_const_gen</code> feature to support +arrays larger than 32 elements. +Note that <a href="../trait.Rng.html#method.fill" title="Rng::fill"><code>Rng::fill</code></a> and <code>Standard</code>’s array support are <em>not</em> equivalent: +the former is optimised for integer types (using fewer RNG calls for +element types smaller than the RNG word size), while the latter supports +any element type supported by <code>Standard</code>.</li> +<li><code>Option<T></code> first generates a <code>bool</code>, and if true generates and returns +<code>Some(value)</code> where <code>value: T</code>, otherwise returning <code>None</code>.</li> +</ul> +<h3 id="custom-implementations"><a href="#custom-implementations">Custom implementations</a></h3> +<p>The <a href="struct.Standard.html" title="Standard"><code>Standard</code></a> distribution may be implemented for user types as follows:</p> + +<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>rand::Rng; +<span class="kw">use </span>rand::distributions::{Distribution, Standard}; + +<span class="kw">struct </span>MyF32 { + x: f32, +} + +<span class="kw">impl </span>Distribution<MyF32> <span class="kw">for </span>Standard { + <span class="kw">fn </span>sample<R: Rng + <span class="question-mark">?</span>Sized>(<span class="kw-2">&</span><span class="self">self</span>, rng: <span class="kw-2">&mut </span>R) -> MyF32 { + MyF32 { x: rng.gen() } + } +}</code></pre></div> +<h3 id="example-usage"><a href="#example-usage">Example usage</a></h3> +<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>rand::prelude::<span class="kw-2">*</span>; +<span class="kw">use </span>rand::distributions::Standard; + +<span class="kw">let </span>val: f32 = StdRng::from_entropy().sample(Standard); +<span class="macro">println!</span>(<span class="string">"f32 from [0, 1): {}"</span>, val);</code></pre></div> +<h2 id="floating-point-implementation"><a href="#floating-point-implementation">Floating point implementation</a></h2> +<p>The floating point implementations for <code>Standard</code> generate a random value in +the half-open interval <code>[0, 1)</code>, i.e. including 0 but not 1.</p> +<p>All values that can be generated are of the form <code>n * ε/2</code>. For <code>f32</code> +the 24 most significant random bits of a <code>u32</code> are used and for <code>f64</code> the +53 most significant bits of a <code>u64</code> are used. The conversion uses the +multiplicative method: <code>(rng.gen::<$uty>() >> N) as $ty * (ε/2)</code>.</p> +<p>See also: <a href="struct.Open01.html" title="Open01"><code>Open01</code></a> which samples from <code>(0, 1)</code>, <a href="struct.OpenClosed01.html" title="OpenClosed01"><code>OpenClosed01</code></a> which +samples from <code>(0, 1]</code> and <code>Rng::gen_range(0..1)</code> which also samples from +<code>[0, 1)</code>. Note that <code>Open01</code> uses transmute-based methods which yield 1 bit +less precision but may perform faster on some architectures (on modern Intel +CPUs all methods have approximately equal performance).</p> +</div></details><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/mod.rs.html#216">source</a><a href="#impl-Clone-for-Standard" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/mod.rs.html#216">source</a><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.66.0/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&self) -> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a></h4></section></summary><div class='docblock'>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.66.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.66.0/src/core/clone.rs.html#132-134">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.66.0/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&</a>Self)</h4></section></summary><div class='docblock'>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.66.0/core/clone/trait.Clone.html#method.clone_from">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/mod.rs.html#216">source</a><a href="#impl-Debug-for-Standard" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.fmt" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/mod.rs.html#216">source</a><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.66.0/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/1.66.0/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="type" href="https://doc.rust-lang.org/1.66.0/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></section></summary><div class='docblock'>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/1.66.0/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-DistString-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#98-106">source</a><a href="#impl-DistString-for-Standard" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="trait.DistString.html" title="trait rand::distributions::DistString">DistString</a> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a></h3></section></summary><div class="docblock"><p>Note: the <code>String</code> is potentially left with excess capacity; optionally the +user may call <code>string.shrink_to_fit()</code> afterwards.</p> +</div><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.append_string" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#99-105">source</a><a href="#method.append_string" class="anchor"></a><h4 class="code-header">fn <a href="trait.DistString.html#tymethod.append_string" class="fnname">append_string</a><R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, rng: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>R, s: &mut <a class="struct" href="https://doc.rust-lang.org/1.66.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, len: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.usize.html">usize</a>)</h4></section></summary><div class='docblock'>Append <code>len</code> random chars to <code>string</code></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_string" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#203-207">source</a><a href="#method.sample_string" class="anchor"></a><h4 class="code-header">fn <a href="trait.DistString.html#method.sample_string" class="fnname">sample_string</a><R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, rng: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>R, len: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.usize.html">usize</a>) -> <a class="struct" href="https://doc.rust-lang.org/1.66.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></h4></section></summary><div class='docblock'>Generate a <code>String</code> of <code>len</code> random chars</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C%5BT%3B%200%5D%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#231">source</a><a href="#impl-Distribution%3C%5BT%3B%200%5D%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl<T> <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.array.html">[T; 0]</a>> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample-35" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#231">source</a><a href="#method.sample-35" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#tymethod.sample" class="fnname">sample</a><R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.array.html">[T; 0]</a></h4></section></summary><div class='docblock'>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-35" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a><a href="#method.sample_iter-35" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.sample_iter" class="fnname">sample_iter</a><R>(self, rng: R) -> <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><Self, R, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T></span><code class="content"><span class="where fmt-newline">impl<D, R, T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T><span class="where fmt-newline">where<br> D: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,</span></span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = T;</span></code></span></span></span></span><span class="where fmt-newline">where<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create an iterator that generates random values of <code>T</code>, using <code>rng</code> as +the source of randomness. <a href="trait.Distribution.html#method.sample_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-35" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a><a href="#method.map-35" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.map" class="fnname">map</a><F, S>(self, func: F) -> <a class="struct" href="struct.DistMap.html" title="struct rand::distributions::DistMap">DistMap</a><Self, F, T, S><span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(T) -> S,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create a distribution of values of ‘S’ by mapping the output of <code>Self</code> +through the closure <code>F</code> <a href="trait.Distribution.html#method.map">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C%5BT%3B%201%5D%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#231">source</a><a href="#impl-Distribution%3C%5BT%3B%201%5D%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl<T> <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.array.html">[T; 1]</a>> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a><span class="where fmt-newline">where<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample-36" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#231">source</a><a href="#method.sample-36" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#tymethod.sample" class="fnname">sample</a><R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.array.html">[T; 1]</a></h4></section></summary><div class='docblock'>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-36" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a><a href="#method.sample_iter-36" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.sample_iter" class="fnname">sample_iter</a><R>(self, rng: R) -> <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><Self, R, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T></span><code class="content"><span class="where fmt-newline">impl<D, R, T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T><span class="where fmt-newline">where<br> D: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,</span></span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = T;</span></code></span></span></span></span><span class="where fmt-newline">where<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create an iterator that generates random values of <code>T</code>, using <code>rng</code> as +the source of randomness. <a href="trait.Distribution.html#method.sample_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-36" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a><a href="#method.map-36" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.map" class="fnname">map</a><F, S>(self, func: F) -> <a class="struct" href="struct.DistMap.html" title="struct rand::distributions::DistMap">DistMap</a><Self, F, T, S><span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(T) -> S,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create a distribution of values of ‘S’ by mapping the output of <code>Self</code> +through the closure <code>F</code> <a href="trait.Distribution.html#method.map">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C%5BT%3B%2010%5D%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#231">source</a><a href="#impl-Distribution%3C%5BT%3B%2010%5D%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl<T> <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.array.html">[T; 10]</a>> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a><span class="where fmt-newline">where<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample-45" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#231">source</a><a href="#method.sample-45" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#tymethod.sample" class="fnname">sample</a><R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.array.html">[T; 10]</a></h4></section></summary><div class='docblock'>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-45" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a><a href="#method.sample_iter-45" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.sample_iter" class="fnname">sample_iter</a><R>(self, rng: R) -> <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><Self, R, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T></span><code class="content"><span class="where fmt-newline">impl<D, R, T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T><span class="where fmt-newline">where<br> D: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,</span></span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = T;</span></code></span></span></span></span><span class="where fmt-newline">where<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create an iterator that generates random values of <code>T</code>, using <code>rng</code> as +the source of randomness. <a href="trait.Distribution.html#method.sample_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-45" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a><a href="#method.map-45" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.map" class="fnname">map</a><F, S>(self, func: F) -> <a class="struct" href="struct.DistMap.html" title="struct rand::distributions::DistMap">DistMap</a><Self, F, T, S><span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(T) -> S,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create a distribution of values of ‘S’ by mapping the output of <code>Self</code> +through the closure <code>F</code> <a href="trait.Distribution.html#method.map">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C%5BT%3B%2011%5D%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#231">source</a><a href="#impl-Distribution%3C%5BT%3B%2011%5D%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl<T> <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.array.html">[T; 11]</a>> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a><span class="where fmt-newline">where<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample-46" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#231">source</a><a href="#method.sample-46" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#tymethod.sample" class="fnname">sample</a><R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.array.html">[T; 11]</a></h4></section></summary><div class='docblock'>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-46" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a><a href="#method.sample_iter-46" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.sample_iter" class="fnname">sample_iter</a><R>(self, rng: R) -> <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><Self, R, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T></span><code class="content"><span class="where fmt-newline">impl<D, R, T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T><span class="where fmt-newline">where<br> D: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,</span></span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = T;</span></code></span></span></span></span><span class="where fmt-newline">where<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create an iterator that generates random values of <code>T</code>, using <code>rng</code> as +the source of randomness. <a href="trait.Distribution.html#method.sample_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-46" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a><a href="#method.map-46" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.map" class="fnname">map</a><F, S>(self, func: F) -> <a class="struct" href="struct.DistMap.html" title="struct rand::distributions::DistMap">DistMap</a><Self, F, T, S><span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(T) -> S,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create a distribution of values of ‘S’ by mapping the output of <code>Self</code> +through the closure <code>F</code> <a href="trait.Distribution.html#method.map">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C%5BT%3B%2012%5D%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#231">source</a><a href="#impl-Distribution%3C%5BT%3B%2012%5D%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl<T> <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.array.html">[T; 12]</a>> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a><span class="where fmt-newline">where<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample-47" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#231">source</a><a href="#method.sample-47" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#tymethod.sample" class="fnname">sample</a><R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.array.html">[T; 12]</a></h4></section></summary><div class='docblock'>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-47" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a><a href="#method.sample_iter-47" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.sample_iter" class="fnname">sample_iter</a><R>(self, rng: R) -> <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><Self, R, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T></span><code class="content"><span class="where fmt-newline">impl<D, R, T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T><span class="where fmt-newline">where<br> D: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,</span></span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = T;</span></code></span></span></span></span><span class="where fmt-newline">where<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create an iterator that generates random values of <code>T</code>, using <code>rng</code> as +the source of randomness. <a href="trait.Distribution.html#method.sample_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-47" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a><a href="#method.map-47" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.map" class="fnname">map</a><F, S>(self, func: F) -> <a class="struct" href="struct.DistMap.html" title="struct rand::distributions::DistMap">DistMap</a><Self, F, T, S><span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(T) -> S,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create a distribution of values of ‘S’ by mapping the output of <code>Self</code> +through the closure <code>F</code> <a href="trait.Distribution.html#method.map">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C%5BT%3B%2013%5D%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#231">source</a><a href="#impl-Distribution%3C%5BT%3B%2013%5D%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl<T> <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.array.html">[T; 13]</a>> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a><span class="where fmt-newline">where<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample-48" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#231">source</a><a href="#method.sample-48" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#tymethod.sample" class="fnname">sample</a><R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.array.html">[T; 13]</a></h4></section></summary><div class='docblock'>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-48" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a><a href="#method.sample_iter-48" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.sample_iter" class="fnname">sample_iter</a><R>(self, rng: R) -> <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><Self, R, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T></span><code class="content"><span class="where fmt-newline">impl<D, R, T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T><span class="where fmt-newline">where<br> D: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,</span></span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = T;</span></code></span></span></span></span><span class="where fmt-newline">where<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create an iterator that generates random values of <code>T</code>, using <code>rng</code> as +the source of randomness. <a href="trait.Distribution.html#method.sample_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-48" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a><a href="#method.map-48" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.map" class="fnname">map</a><F, S>(self, func: F) -> <a class="struct" href="struct.DistMap.html" title="struct rand::distributions::DistMap">DistMap</a><Self, F, T, S><span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(T) -> S,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create a distribution of values of ‘S’ by mapping the output of <code>Self</code> +through the closure <code>F</code> <a href="trait.Distribution.html#method.map">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C%5BT%3B%2014%5D%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#231">source</a><a href="#impl-Distribution%3C%5BT%3B%2014%5D%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl<T> <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.array.html">[T; 14]</a>> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a><span class="where fmt-newline">where<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample-49" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#231">source</a><a href="#method.sample-49" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#tymethod.sample" class="fnname">sample</a><R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.array.html">[T; 14]</a></h4></section></summary><div class='docblock'>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-49" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a><a href="#method.sample_iter-49" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.sample_iter" class="fnname">sample_iter</a><R>(self, rng: R) -> <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><Self, R, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T></span><code class="content"><span class="where fmt-newline">impl<D, R, T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T><span class="where fmt-newline">where<br> D: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,</span></span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = T;</span></code></span></span></span></span><span class="where fmt-newline">where<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create an iterator that generates random values of <code>T</code>, using <code>rng</code> as +the source of randomness. <a href="trait.Distribution.html#method.sample_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-49" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a><a href="#method.map-49" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.map" class="fnname">map</a><F, S>(self, func: F) -> <a class="struct" href="struct.DistMap.html" title="struct rand::distributions::DistMap">DistMap</a><Self, F, T, S><span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(T) -> S,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create a distribution of values of ‘S’ by mapping the output of <code>Self</code> +through the closure <code>F</code> <a href="trait.Distribution.html#method.map">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C%5BT%3B%2015%5D%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#231">source</a><a href="#impl-Distribution%3C%5BT%3B%2015%5D%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl<T> <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.array.html">[T; 15]</a>> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a><span class="where fmt-newline">where<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample-50" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#231">source</a><a href="#method.sample-50" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#tymethod.sample" class="fnname">sample</a><R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.array.html">[T; 15]</a></h4></section></summary><div class='docblock'>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-50" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a><a href="#method.sample_iter-50" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.sample_iter" class="fnname">sample_iter</a><R>(self, rng: R) -> <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><Self, R, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T></span><code class="content"><span class="where fmt-newline">impl<D, R, T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T><span class="where fmt-newline">where<br> D: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,</span></span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = T;</span></code></span></span></span></span><span class="where fmt-newline">where<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create an iterator that generates random values of <code>T</code>, using <code>rng</code> as +the source of randomness. <a href="trait.Distribution.html#method.sample_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-50" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a><a href="#method.map-50" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.map" class="fnname">map</a><F, S>(self, func: F) -> <a class="struct" href="struct.DistMap.html" title="struct rand::distributions::DistMap">DistMap</a><Self, F, T, S><span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(T) -> S,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create a distribution of values of ‘S’ by mapping the output of <code>Self</code> +through the closure <code>F</code> <a href="trait.Distribution.html#method.map">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C%5BT%3B%2016%5D%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#231">source</a><a href="#impl-Distribution%3C%5BT%3B%2016%5D%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl<T> <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.array.html">[T; 16]</a>> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a><span class="where fmt-newline">where<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample-51" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#231">source</a><a href="#method.sample-51" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#tymethod.sample" class="fnname">sample</a><R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.array.html">[T; 16]</a></h4></section></summary><div class='docblock'>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-51" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a><a href="#method.sample_iter-51" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.sample_iter" class="fnname">sample_iter</a><R>(self, rng: R) -> <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><Self, R, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T></span><code class="content"><span class="where fmt-newline">impl<D, R, T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T><span class="where fmt-newline">where<br> D: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,</span></span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = T;</span></code></span></span></span></span><span class="where fmt-newline">where<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create an iterator that generates random values of <code>T</code>, using <code>rng</code> as +the source of randomness. <a href="trait.Distribution.html#method.sample_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-51" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a><a href="#method.map-51" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.map" class="fnname">map</a><F, S>(self, func: F) -> <a class="struct" href="struct.DistMap.html" title="struct rand::distributions::DistMap">DistMap</a><Self, F, T, S><span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(T) -> S,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create a distribution of values of ‘S’ by mapping the output of <code>Self</code> +through the closure <code>F</code> <a href="trait.Distribution.html#method.map">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C%5BT%3B%2017%5D%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#231">source</a><a href="#impl-Distribution%3C%5BT%3B%2017%5D%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl<T> <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.array.html">[T; 17]</a>> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a><span class="where fmt-newline">where<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample-52" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#231">source</a><a href="#method.sample-52" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#tymethod.sample" class="fnname">sample</a><R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.array.html">[T; 17]</a></h4></section></summary><div class='docblock'>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-52" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a><a href="#method.sample_iter-52" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.sample_iter" class="fnname">sample_iter</a><R>(self, rng: R) -> <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><Self, R, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T></span><code class="content"><span class="where fmt-newline">impl<D, R, T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T><span class="where fmt-newline">where<br> D: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,</span></span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = T;</span></code></span></span></span></span><span class="where fmt-newline">where<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create an iterator that generates random values of <code>T</code>, using <code>rng</code> as +the source of randomness. <a href="trait.Distribution.html#method.sample_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-52" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a><a href="#method.map-52" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.map" class="fnname">map</a><F, S>(self, func: F) -> <a class="struct" href="struct.DistMap.html" title="struct rand::distributions::DistMap">DistMap</a><Self, F, T, S><span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(T) -> S,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create a distribution of values of ‘S’ by mapping the output of <code>Self</code> +through the closure <code>F</code> <a href="trait.Distribution.html#method.map">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C%5BT%3B%2018%5D%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#231">source</a><a href="#impl-Distribution%3C%5BT%3B%2018%5D%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl<T> <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.array.html">[T; 18]</a>> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a><span class="where fmt-newline">where<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample-53" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#231">source</a><a href="#method.sample-53" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#tymethod.sample" class="fnname">sample</a><R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.array.html">[T; 18]</a></h4></section></summary><div class='docblock'>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-53" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a><a href="#method.sample_iter-53" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.sample_iter" class="fnname">sample_iter</a><R>(self, rng: R) -> <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><Self, R, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T></span><code class="content"><span class="where fmt-newline">impl<D, R, T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T><span class="where fmt-newline">where<br> D: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,</span></span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = T;</span></code></span></span></span></span><span class="where fmt-newline">where<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create an iterator that generates random values of <code>T</code>, using <code>rng</code> as +the source of randomness. <a href="trait.Distribution.html#method.sample_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-53" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a><a href="#method.map-53" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.map" class="fnname">map</a><F, S>(self, func: F) -> <a class="struct" href="struct.DistMap.html" title="struct rand::distributions::DistMap">DistMap</a><Self, F, T, S><span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(T) -> S,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create a distribution of values of ‘S’ by mapping the output of <code>Self</code> +through the closure <code>F</code> <a href="trait.Distribution.html#method.map">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C%5BT%3B%2019%5D%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#231">source</a><a href="#impl-Distribution%3C%5BT%3B%2019%5D%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl<T> <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.array.html">[T; 19]</a>> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a><span class="where fmt-newline">where<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample-54" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#231">source</a><a href="#method.sample-54" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#tymethod.sample" class="fnname">sample</a><R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.array.html">[T; 19]</a></h4></section></summary><div class='docblock'>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-54" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a><a href="#method.sample_iter-54" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.sample_iter" class="fnname">sample_iter</a><R>(self, rng: R) -> <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><Self, R, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T></span><code class="content"><span class="where fmt-newline">impl<D, R, T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T><span class="where fmt-newline">where<br> D: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,</span></span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = T;</span></code></span></span></span></span><span class="where fmt-newline">where<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create an iterator that generates random values of <code>T</code>, using <code>rng</code> as +the source of randomness. <a href="trait.Distribution.html#method.sample_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-54" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a><a href="#method.map-54" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.map" class="fnname">map</a><F, S>(self, func: F) -> <a class="struct" href="struct.DistMap.html" title="struct rand::distributions::DistMap">DistMap</a><Self, F, T, S><span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(T) -> S,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create a distribution of values of ‘S’ by mapping the output of <code>Self</code> +through the closure <code>F</code> <a href="trait.Distribution.html#method.map">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C%5BT%3B%202%5D%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#231">source</a><a href="#impl-Distribution%3C%5BT%3B%202%5D%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl<T> <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.array.html">[T; 2]</a>> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a><span class="where fmt-newline">where<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample-37" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#231">source</a><a href="#method.sample-37" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#tymethod.sample" class="fnname">sample</a><R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.array.html">[T; 2]</a></h4></section></summary><div class='docblock'>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-37" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a><a href="#method.sample_iter-37" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.sample_iter" class="fnname">sample_iter</a><R>(self, rng: R) -> <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><Self, R, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T></span><code class="content"><span class="where fmt-newline">impl<D, R, T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T><span class="where fmt-newline">where<br> D: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,</span></span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = T;</span></code></span></span></span></span><span class="where fmt-newline">where<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create an iterator that generates random values of <code>T</code>, using <code>rng</code> as +the source of randomness. <a href="trait.Distribution.html#method.sample_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-37" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a><a href="#method.map-37" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.map" class="fnname">map</a><F, S>(self, func: F) -> <a class="struct" href="struct.DistMap.html" title="struct rand::distributions::DistMap">DistMap</a><Self, F, T, S><span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(T) -> S,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create a distribution of values of ‘S’ by mapping the output of <code>Self</code> +through the closure <code>F</code> <a href="trait.Distribution.html#method.map">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C%5BT%3B%2020%5D%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#231">source</a><a href="#impl-Distribution%3C%5BT%3B%2020%5D%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl<T> <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.array.html">[T; 20]</a>> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a><span class="where fmt-newline">where<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample-55" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#231">source</a><a href="#method.sample-55" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#tymethod.sample" class="fnname">sample</a><R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.array.html">[T; 20]</a></h4></section></summary><div class='docblock'>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-55" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a><a href="#method.sample_iter-55" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.sample_iter" class="fnname">sample_iter</a><R>(self, rng: R) -> <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><Self, R, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T></span><code class="content"><span class="where fmt-newline">impl<D, R, T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T><span class="where fmt-newline">where<br> D: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,</span></span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = T;</span></code></span></span></span></span><span class="where fmt-newline">where<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create an iterator that generates random values of <code>T</code>, using <code>rng</code> as +the source of randomness. <a href="trait.Distribution.html#method.sample_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-55" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a><a href="#method.map-55" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.map" class="fnname">map</a><F, S>(self, func: F) -> <a class="struct" href="struct.DistMap.html" title="struct rand::distributions::DistMap">DistMap</a><Self, F, T, S><span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(T) -> S,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create a distribution of values of ‘S’ by mapping the output of <code>Self</code> +through the closure <code>F</code> <a href="trait.Distribution.html#method.map">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C%5BT%3B%2021%5D%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#231">source</a><a href="#impl-Distribution%3C%5BT%3B%2021%5D%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl<T> <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.array.html">[T; 21]</a>> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a><span class="where fmt-newline">where<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample-56" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#231">source</a><a href="#method.sample-56" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#tymethod.sample" class="fnname">sample</a><R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.array.html">[T; 21]</a></h4></section></summary><div class='docblock'>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-56" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a><a href="#method.sample_iter-56" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.sample_iter" class="fnname">sample_iter</a><R>(self, rng: R) -> <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><Self, R, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T></span><code class="content"><span class="where fmt-newline">impl<D, R, T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T><span class="where fmt-newline">where<br> D: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,</span></span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = T;</span></code></span></span></span></span><span class="where fmt-newline">where<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create an iterator that generates random values of <code>T</code>, using <code>rng</code> as +the source of randomness. <a href="trait.Distribution.html#method.sample_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-56" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a><a href="#method.map-56" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.map" class="fnname">map</a><F, S>(self, func: F) -> <a class="struct" href="struct.DistMap.html" title="struct rand::distributions::DistMap">DistMap</a><Self, F, T, S><span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(T) -> S,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create a distribution of values of ‘S’ by mapping the output of <code>Self</code> +through the closure <code>F</code> <a href="trait.Distribution.html#method.map">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C%5BT%3B%2022%5D%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#231">source</a><a href="#impl-Distribution%3C%5BT%3B%2022%5D%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl<T> <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.array.html">[T; 22]</a>> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a><span class="where fmt-newline">where<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample-57" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#231">source</a><a href="#method.sample-57" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#tymethod.sample" class="fnname">sample</a><R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.array.html">[T; 22]</a></h4></section></summary><div class='docblock'>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-57" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a><a href="#method.sample_iter-57" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.sample_iter" class="fnname">sample_iter</a><R>(self, rng: R) -> <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><Self, R, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T></span><code class="content"><span class="where fmt-newline">impl<D, R, T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T><span class="where fmt-newline">where<br> D: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,</span></span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = T;</span></code></span></span></span></span><span class="where fmt-newline">where<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create an iterator that generates random values of <code>T</code>, using <code>rng</code> as +the source of randomness. <a href="trait.Distribution.html#method.sample_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-57" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a><a href="#method.map-57" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.map" class="fnname">map</a><F, S>(self, func: F) -> <a class="struct" href="struct.DistMap.html" title="struct rand::distributions::DistMap">DistMap</a><Self, F, T, S><span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(T) -> S,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create a distribution of values of ‘S’ by mapping the output of <code>Self</code> +through the closure <code>F</code> <a href="trait.Distribution.html#method.map">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C%5BT%3B%2023%5D%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#231">source</a><a href="#impl-Distribution%3C%5BT%3B%2023%5D%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl<T> <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.array.html">[T; 23]</a>> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a><span class="where fmt-newline">where<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample-58" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#231">source</a><a href="#method.sample-58" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#tymethod.sample" class="fnname">sample</a><R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.array.html">[T; 23]</a></h4></section></summary><div class='docblock'>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-58" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a><a href="#method.sample_iter-58" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.sample_iter" class="fnname">sample_iter</a><R>(self, rng: R) -> <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><Self, R, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T></span><code class="content"><span class="where fmt-newline">impl<D, R, T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T><span class="where fmt-newline">where<br> D: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,</span></span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = T;</span></code></span></span></span></span><span class="where fmt-newline">where<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create an iterator that generates random values of <code>T</code>, using <code>rng</code> as +the source of randomness. <a href="trait.Distribution.html#method.sample_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-58" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a><a href="#method.map-58" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.map" class="fnname">map</a><F, S>(self, func: F) -> <a class="struct" href="struct.DistMap.html" title="struct rand::distributions::DistMap">DistMap</a><Self, F, T, S><span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(T) -> S,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create a distribution of values of ‘S’ by mapping the output of <code>Self</code> +through the closure <code>F</code> <a href="trait.Distribution.html#method.map">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C%5BT%3B%2024%5D%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#231">source</a><a href="#impl-Distribution%3C%5BT%3B%2024%5D%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl<T> <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.array.html">[T; 24]</a>> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a><span class="where fmt-newline">where<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample-59" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#231">source</a><a href="#method.sample-59" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#tymethod.sample" class="fnname">sample</a><R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.array.html">[T; 24]</a></h4></section></summary><div class='docblock'>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-59" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a><a href="#method.sample_iter-59" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.sample_iter" class="fnname">sample_iter</a><R>(self, rng: R) -> <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><Self, R, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T></span><code class="content"><span class="where fmt-newline">impl<D, R, T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T><span class="where fmt-newline">where<br> D: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,</span></span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = T;</span></code></span></span></span></span><span class="where fmt-newline">where<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create an iterator that generates random values of <code>T</code>, using <code>rng</code> as +the source of randomness. <a href="trait.Distribution.html#method.sample_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-59" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a><a href="#method.map-59" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.map" class="fnname">map</a><F, S>(self, func: F) -> <a class="struct" href="struct.DistMap.html" title="struct rand::distributions::DistMap">DistMap</a><Self, F, T, S><span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(T) -> S,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create a distribution of values of ‘S’ by mapping the output of <code>Self</code> +through the closure <code>F</code> <a href="trait.Distribution.html#method.map">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C%5BT%3B%2025%5D%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#231">source</a><a href="#impl-Distribution%3C%5BT%3B%2025%5D%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl<T> <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.array.html">[T; 25]</a>> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a><span class="where fmt-newline">where<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample-60" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#231">source</a><a href="#method.sample-60" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#tymethod.sample" class="fnname">sample</a><R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.array.html">[T; 25]</a></h4></section></summary><div class='docblock'>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-60" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a><a href="#method.sample_iter-60" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.sample_iter" class="fnname">sample_iter</a><R>(self, rng: R) -> <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><Self, R, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T></span><code class="content"><span class="where fmt-newline">impl<D, R, T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T><span class="where fmt-newline">where<br> D: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,</span></span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = T;</span></code></span></span></span></span><span class="where fmt-newline">where<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create an iterator that generates random values of <code>T</code>, using <code>rng</code> as +the source of randomness. <a href="trait.Distribution.html#method.sample_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-60" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a><a href="#method.map-60" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.map" class="fnname">map</a><F, S>(self, func: F) -> <a class="struct" href="struct.DistMap.html" title="struct rand::distributions::DistMap">DistMap</a><Self, F, T, S><span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(T) -> S,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create a distribution of values of ‘S’ by mapping the output of <code>Self</code> +through the closure <code>F</code> <a href="trait.Distribution.html#method.map">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C%5BT%3B%2026%5D%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#231">source</a><a href="#impl-Distribution%3C%5BT%3B%2026%5D%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl<T> <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.array.html">[T; 26]</a>> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a><span class="where fmt-newline">where<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample-61" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#231">source</a><a href="#method.sample-61" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#tymethod.sample" class="fnname">sample</a><R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.array.html">[T; 26]</a></h4></section></summary><div class='docblock'>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-61" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a><a href="#method.sample_iter-61" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.sample_iter" class="fnname">sample_iter</a><R>(self, rng: R) -> <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><Self, R, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T></span><code class="content"><span class="where fmt-newline">impl<D, R, T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T><span class="where fmt-newline">where<br> D: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,</span></span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = T;</span></code></span></span></span></span><span class="where fmt-newline">where<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create an iterator that generates random values of <code>T</code>, using <code>rng</code> as +the source of randomness. <a href="trait.Distribution.html#method.sample_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-61" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a><a href="#method.map-61" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.map" class="fnname">map</a><F, S>(self, func: F) -> <a class="struct" href="struct.DistMap.html" title="struct rand::distributions::DistMap">DistMap</a><Self, F, T, S><span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(T) -> S,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create a distribution of values of ‘S’ by mapping the output of <code>Self</code> +through the closure <code>F</code> <a href="trait.Distribution.html#method.map">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C%5BT%3B%2027%5D%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#231">source</a><a href="#impl-Distribution%3C%5BT%3B%2027%5D%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl<T> <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.array.html">[T; 27]</a>> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a><span class="where fmt-newline">where<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample-62" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#231">source</a><a href="#method.sample-62" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#tymethod.sample" class="fnname">sample</a><R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.array.html">[T; 27]</a></h4></section></summary><div class='docblock'>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-62" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a><a href="#method.sample_iter-62" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.sample_iter" class="fnname">sample_iter</a><R>(self, rng: R) -> <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><Self, R, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T></span><code class="content"><span class="where fmt-newline">impl<D, R, T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T><span class="where fmt-newline">where<br> D: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,</span></span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = T;</span></code></span></span></span></span><span class="where fmt-newline">where<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create an iterator that generates random values of <code>T</code>, using <code>rng</code> as +the source of randomness. <a href="trait.Distribution.html#method.sample_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-62" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a><a href="#method.map-62" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.map" class="fnname">map</a><F, S>(self, func: F) -> <a class="struct" href="struct.DistMap.html" title="struct rand::distributions::DistMap">DistMap</a><Self, F, T, S><span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(T) -> S,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create a distribution of values of ‘S’ by mapping the output of <code>Self</code> +through the closure <code>F</code> <a href="trait.Distribution.html#method.map">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C%5BT%3B%2028%5D%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#231">source</a><a href="#impl-Distribution%3C%5BT%3B%2028%5D%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl<T> <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.array.html">[T; 28]</a>> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a><span class="where fmt-newline">where<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample-63" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#231">source</a><a href="#method.sample-63" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#tymethod.sample" class="fnname">sample</a><R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.array.html">[T; 28]</a></h4></section></summary><div class='docblock'>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-63" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a><a href="#method.sample_iter-63" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.sample_iter" class="fnname">sample_iter</a><R>(self, rng: R) -> <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><Self, R, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T></span><code class="content"><span class="where fmt-newline">impl<D, R, T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T><span class="where fmt-newline">where<br> D: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,</span></span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = T;</span></code></span></span></span></span><span class="where fmt-newline">where<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create an iterator that generates random values of <code>T</code>, using <code>rng</code> as +the source of randomness. <a href="trait.Distribution.html#method.sample_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-63" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a><a href="#method.map-63" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.map" class="fnname">map</a><F, S>(self, func: F) -> <a class="struct" href="struct.DistMap.html" title="struct rand::distributions::DistMap">DistMap</a><Self, F, T, S><span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(T) -> S,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create a distribution of values of ‘S’ by mapping the output of <code>Self</code> +through the closure <code>F</code> <a href="trait.Distribution.html#method.map">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C%5BT%3B%2029%5D%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#231">source</a><a href="#impl-Distribution%3C%5BT%3B%2029%5D%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl<T> <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.array.html">[T; 29]</a>> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a><span class="where fmt-newline">where<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample-64" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#231">source</a><a href="#method.sample-64" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#tymethod.sample" class="fnname">sample</a><R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.array.html">[T; 29]</a></h4></section></summary><div class='docblock'>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-64" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a><a href="#method.sample_iter-64" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.sample_iter" class="fnname">sample_iter</a><R>(self, rng: R) -> <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><Self, R, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T></span><code class="content"><span class="where fmt-newline">impl<D, R, T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T><span class="where fmt-newline">where<br> D: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,</span></span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = T;</span></code></span></span></span></span><span class="where fmt-newline">where<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create an iterator that generates random values of <code>T</code>, using <code>rng</code> as +the source of randomness. <a href="trait.Distribution.html#method.sample_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-64" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a><a href="#method.map-64" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.map" class="fnname">map</a><F, S>(self, func: F) -> <a class="struct" href="struct.DistMap.html" title="struct rand::distributions::DistMap">DistMap</a><Self, F, T, S><span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(T) -> S,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create a distribution of values of ‘S’ by mapping the output of <code>Self</code> +through the closure <code>F</code> <a href="trait.Distribution.html#method.map">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C%5BT%3B%203%5D%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#231">source</a><a href="#impl-Distribution%3C%5BT%3B%203%5D%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl<T> <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.array.html">[T; 3]</a>> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a><span class="where fmt-newline">where<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample-38" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#231">source</a><a href="#method.sample-38" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#tymethod.sample" class="fnname">sample</a><R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.array.html">[T; 3]</a></h4></section></summary><div class='docblock'>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-38" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a><a href="#method.sample_iter-38" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.sample_iter" class="fnname">sample_iter</a><R>(self, rng: R) -> <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><Self, R, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T></span><code class="content"><span class="where fmt-newline">impl<D, R, T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T><span class="where fmt-newline">where<br> D: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,</span></span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = T;</span></code></span></span></span></span><span class="where fmt-newline">where<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create an iterator that generates random values of <code>T</code>, using <code>rng</code> as +the source of randomness. <a href="trait.Distribution.html#method.sample_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-38" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a><a href="#method.map-38" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.map" class="fnname">map</a><F, S>(self, func: F) -> <a class="struct" href="struct.DistMap.html" title="struct rand::distributions::DistMap">DistMap</a><Self, F, T, S><span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(T) -> S,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create a distribution of values of ‘S’ by mapping the output of <code>Self</code> +through the closure <code>F</code> <a href="trait.Distribution.html#method.map">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C%5BT%3B%2030%5D%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#231">source</a><a href="#impl-Distribution%3C%5BT%3B%2030%5D%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl<T> <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.array.html">[T; 30]</a>> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a><span class="where fmt-newline">where<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample-65" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#231">source</a><a href="#method.sample-65" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#tymethod.sample" class="fnname">sample</a><R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.array.html">[T; 30]</a></h4></section></summary><div class='docblock'>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-65" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a><a href="#method.sample_iter-65" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.sample_iter" class="fnname">sample_iter</a><R>(self, rng: R) -> <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><Self, R, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T></span><code class="content"><span class="where fmt-newline">impl<D, R, T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T><span class="where fmt-newline">where<br> D: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,</span></span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = T;</span></code></span></span></span></span><span class="where fmt-newline">where<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create an iterator that generates random values of <code>T</code>, using <code>rng</code> as +the source of randomness. <a href="trait.Distribution.html#method.sample_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-65" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a><a href="#method.map-65" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.map" class="fnname">map</a><F, S>(self, func: F) -> <a class="struct" href="struct.DistMap.html" title="struct rand::distributions::DistMap">DistMap</a><Self, F, T, S><span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(T) -> S,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create a distribution of values of ‘S’ by mapping the output of <code>Self</code> +through the closure <code>F</code> <a href="trait.Distribution.html#method.map">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C%5BT%3B%2031%5D%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#231">source</a><a href="#impl-Distribution%3C%5BT%3B%2031%5D%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl<T> <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.array.html">[T; 31]</a>> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a><span class="where fmt-newline">where<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample-66" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#231">source</a><a href="#method.sample-66" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#tymethod.sample" class="fnname">sample</a><R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.array.html">[T; 31]</a></h4></section></summary><div class='docblock'>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-66" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a><a href="#method.sample_iter-66" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.sample_iter" class="fnname">sample_iter</a><R>(self, rng: R) -> <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><Self, R, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T></span><code class="content"><span class="where fmt-newline">impl<D, R, T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T><span class="where fmt-newline">where<br> D: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,</span></span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = T;</span></code></span></span></span></span><span class="where fmt-newline">where<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create an iterator that generates random values of <code>T</code>, using <code>rng</code> as +the source of randomness. <a href="trait.Distribution.html#method.sample_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-66" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a><a href="#method.map-66" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.map" class="fnname">map</a><F, S>(self, func: F) -> <a class="struct" href="struct.DistMap.html" title="struct rand::distributions::DistMap">DistMap</a><Self, F, T, S><span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(T) -> S,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create a distribution of values of ‘S’ by mapping the output of <code>Self</code> +through the closure <code>F</code> <a href="trait.Distribution.html#method.map">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C%5BT%3B%2032%5D%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#231">source</a><a href="#impl-Distribution%3C%5BT%3B%2032%5D%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl<T> <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.array.html">[T; 32]</a>> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a><span class="where fmt-newline">where<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample-67" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#231">source</a><a href="#method.sample-67" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#tymethod.sample" class="fnname">sample</a><R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.array.html">[T; 32]</a></h4></section></summary><div class='docblock'>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-67" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a><a href="#method.sample_iter-67" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.sample_iter" class="fnname">sample_iter</a><R>(self, rng: R) -> <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><Self, R, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T></span><code class="content"><span class="where fmt-newline">impl<D, R, T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T><span class="where fmt-newline">where<br> D: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,</span></span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = T;</span></code></span></span></span></span><span class="where fmt-newline">where<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create an iterator that generates random values of <code>T</code>, using <code>rng</code> as +the source of randomness. <a href="trait.Distribution.html#method.sample_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-67" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a><a href="#method.map-67" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.map" class="fnname">map</a><F, S>(self, func: F) -> <a class="struct" href="struct.DistMap.html" title="struct rand::distributions::DistMap">DistMap</a><Self, F, T, S><span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(T) -> S,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create a distribution of values of ‘S’ by mapping the output of <code>Self</code> +through the closure <code>F</code> <a href="trait.Distribution.html#method.map">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C%5BT%3B%204%5D%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#231">source</a><a href="#impl-Distribution%3C%5BT%3B%204%5D%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl<T> <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.array.html">[T; 4]</a>> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a><span class="where fmt-newline">where<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample-39" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#231">source</a><a href="#method.sample-39" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#tymethod.sample" class="fnname">sample</a><R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.array.html">[T; 4]</a></h4></section></summary><div class='docblock'>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-39" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a><a href="#method.sample_iter-39" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.sample_iter" class="fnname">sample_iter</a><R>(self, rng: R) -> <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><Self, R, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T></span><code class="content"><span class="where fmt-newline">impl<D, R, T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T><span class="where fmt-newline">where<br> D: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,</span></span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = T;</span></code></span></span></span></span><span class="where fmt-newline">where<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create an iterator that generates random values of <code>T</code>, using <code>rng</code> as +the source of randomness. <a href="trait.Distribution.html#method.sample_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-39" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a><a href="#method.map-39" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.map" class="fnname">map</a><F, S>(self, func: F) -> <a class="struct" href="struct.DistMap.html" title="struct rand::distributions::DistMap">DistMap</a><Self, F, T, S><span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(T) -> S,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create a distribution of values of ‘S’ by mapping the output of <code>Self</code> +through the closure <code>F</code> <a href="trait.Distribution.html#method.map">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C%5BT%3B%205%5D%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#231">source</a><a href="#impl-Distribution%3C%5BT%3B%205%5D%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl<T> <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.array.html">[T; 5]</a>> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a><span class="where fmt-newline">where<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample-40" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#231">source</a><a href="#method.sample-40" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#tymethod.sample" class="fnname">sample</a><R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.array.html">[T; 5]</a></h4></section></summary><div class='docblock'>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-40" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a><a href="#method.sample_iter-40" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.sample_iter" class="fnname">sample_iter</a><R>(self, rng: R) -> <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><Self, R, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T></span><code class="content"><span class="where fmt-newline">impl<D, R, T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T><span class="where fmt-newline">where<br> D: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,</span></span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = T;</span></code></span></span></span></span><span class="where fmt-newline">where<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create an iterator that generates random values of <code>T</code>, using <code>rng</code> as +the source of randomness. <a href="trait.Distribution.html#method.sample_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-40" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a><a href="#method.map-40" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.map" class="fnname">map</a><F, S>(self, func: F) -> <a class="struct" href="struct.DistMap.html" title="struct rand::distributions::DistMap">DistMap</a><Self, F, T, S><span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(T) -> S,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create a distribution of values of ‘S’ by mapping the output of <code>Self</code> +through the closure <code>F</code> <a href="trait.Distribution.html#method.map">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C%5BT%3B%206%5D%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#231">source</a><a href="#impl-Distribution%3C%5BT%3B%206%5D%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl<T> <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.array.html">[T; 6]</a>> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a><span class="where fmt-newline">where<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample-41" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#231">source</a><a href="#method.sample-41" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#tymethod.sample" class="fnname">sample</a><R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.array.html">[T; 6]</a></h4></section></summary><div class='docblock'>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-41" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a><a href="#method.sample_iter-41" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.sample_iter" class="fnname">sample_iter</a><R>(self, rng: R) -> <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><Self, R, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T></span><code class="content"><span class="where fmt-newline">impl<D, R, T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T><span class="where fmt-newline">where<br> D: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,</span></span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = T;</span></code></span></span></span></span><span class="where fmt-newline">where<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create an iterator that generates random values of <code>T</code>, using <code>rng</code> as +the source of randomness. <a href="trait.Distribution.html#method.sample_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-41" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a><a href="#method.map-41" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.map" class="fnname">map</a><F, S>(self, func: F) -> <a class="struct" href="struct.DistMap.html" title="struct rand::distributions::DistMap">DistMap</a><Self, F, T, S><span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(T) -> S,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create a distribution of values of ‘S’ by mapping the output of <code>Self</code> +through the closure <code>F</code> <a href="trait.Distribution.html#method.map">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C%5BT%3B%207%5D%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#231">source</a><a href="#impl-Distribution%3C%5BT%3B%207%5D%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl<T> <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.array.html">[T; 7]</a>> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a><span class="where fmt-newline">where<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample-42" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#231">source</a><a href="#method.sample-42" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#tymethod.sample" class="fnname">sample</a><R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.array.html">[T; 7]</a></h4></section></summary><div class='docblock'>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-42" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a><a href="#method.sample_iter-42" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.sample_iter" class="fnname">sample_iter</a><R>(self, rng: R) -> <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><Self, R, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T></span><code class="content"><span class="where fmt-newline">impl<D, R, T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T><span class="where fmt-newline">where<br> D: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,</span></span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = T;</span></code></span></span></span></span><span class="where fmt-newline">where<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create an iterator that generates random values of <code>T</code>, using <code>rng</code> as +the source of randomness. <a href="trait.Distribution.html#method.sample_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-42" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a><a href="#method.map-42" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.map" class="fnname">map</a><F, S>(self, func: F) -> <a class="struct" href="struct.DistMap.html" title="struct rand::distributions::DistMap">DistMap</a><Self, F, T, S><span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(T) -> S,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create a distribution of values of ‘S’ by mapping the output of <code>Self</code> +through the closure <code>F</code> <a href="trait.Distribution.html#method.map">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C%5BT%3B%208%5D%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#231">source</a><a href="#impl-Distribution%3C%5BT%3B%208%5D%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl<T> <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.array.html">[T; 8]</a>> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a><span class="where fmt-newline">where<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample-43" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#231">source</a><a href="#method.sample-43" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#tymethod.sample" class="fnname">sample</a><R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.array.html">[T; 8]</a></h4></section></summary><div class='docblock'>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-43" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a><a href="#method.sample_iter-43" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.sample_iter" class="fnname">sample_iter</a><R>(self, rng: R) -> <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><Self, R, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T></span><code class="content"><span class="where fmt-newline">impl<D, R, T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T><span class="where fmt-newline">where<br> D: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,</span></span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = T;</span></code></span></span></span></span><span class="where fmt-newline">where<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create an iterator that generates random values of <code>T</code>, using <code>rng</code> as +the source of randomness. <a href="trait.Distribution.html#method.sample_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-43" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a><a href="#method.map-43" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.map" class="fnname">map</a><F, S>(self, func: F) -> <a class="struct" href="struct.DistMap.html" title="struct rand::distributions::DistMap">DistMap</a><Self, F, T, S><span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(T) -> S,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create a distribution of values of ‘S’ by mapping the output of <code>Self</code> +through the closure <code>F</code> <a href="trait.Distribution.html#method.map">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C%5BT%3B%209%5D%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#231">source</a><a href="#impl-Distribution%3C%5BT%3B%209%5D%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl<T> <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.array.html">[T; 9]</a>> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a><span class="where fmt-newline">where<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample-44" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#231">source</a><a href="#method.sample-44" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#tymethod.sample" class="fnname">sample</a><R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.array.html">[T; 9]</a></h4></section></summary><div class='docblock'>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-44" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a><a href="#method.sample_iter-44" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.sample_iter" class="fnname">sample_iter</a><R>(self, rng: R) -> <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><Self, R, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T></span><code class="content"><span class="where fmt-newline">impl<D, R, T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T><span class="where fmt-newline">where<br> D: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,</span></span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = T;</span></code></span></span></span></span><span class="where fmt-newline">where<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create an iterator that generates random values of <code>T</code>, using <code>rng</code> as +the source of randomness. <a href="trait.Distribution.html#method.sample_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-44" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a><a href="#method.map-44" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.map" class="fnname">map</a><F, S>(self, func: F) -> <a class="struct" href="struct.DistMap.html" title="struct rand::distributions::DistMap">DistMap</a><Self, F, T, S><span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(T) -> S,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create a distribution of values of ‘S’ by mapping the output of <code>Self</code> +through the closure <code>F</code> <a href="trait.Distribution.html#method.map">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C()%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#172-178">source</a><a href="#impl-Distribution%3C()%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.unit.html">()</a>> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample-22" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#175-177">source</a><a href="#method.sample-22" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#tymethod.sample" class="fnname">sample</a><R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>R)</h4></section></summary><div class='docblock'>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-22" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a><a href="#method.sample_iter-22" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.sample_iter" class="fnname">sample_iter</a><R>(self, rng: R) -> <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><Self, R, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T></span><code class="content"><span class="where fmt-newline">impl<D, R, T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T><span class="where fmt-newline">where<br> D: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,</span></span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = T;</span></code></span></span></span></span><span class="where fmt-newline">where<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create an iterator that generates random values of <code>T</code>, using <code>rng</code> as +the source of randomness. <a href="trait.Distribution.html#method.sample_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-22" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a><a href="#method.map-22" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.map" class="fnname">map</a><F, S>(self, func: F) -> <a class="struct" href="struct.DistMap.html" title="struct rand::distributions::DistMap">DistMap</a><Self, F, T, S><span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(T) -> S,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create a distribution of values of ‘S’ by mapping the output of <code>Self</code> +through the closure <code>F</code> <a href="trait.Distribution.html#method.map">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C(A%2C%20B%2C%20C%2C%20D%2C%20E%2C%20F%2C%20G%2C%20H%2C%20I%2C%20J%2C%20K%2C%20L)%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#190">source</a><a href="#impl-Distribution%3C(A%2C%20B%2C%20C%2C%20D%2C%20E%2C%20F%2C%20G%2C%20H%2C%20I%2C%20J%2C%20K%2C%20L)%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl<A, B, C, D, E, F, G, H, I, J, K, L> <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.tuple.html">(A, B, C, D, E, F, G, H, I, J, K, L)</a>> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a><span class="where fmt-newline">where<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><A>,<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><B>,<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><C>,<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><D>,<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><E>,<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><F>,<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><G>,<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><H>,<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><I>,<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><J>,<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><K>,<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><L>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample-34" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#190">source</a><a href="#method.sample-34" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#tymethod.sample" class="fnname">sample</a><R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(<br> &self,<br> _rng: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>R<br>) -> <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.tuple.html">(A, B, C, D, E, F, G, H, I, J, K, L)</a></h4></section></summary><div class='docblock'>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-34" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a><a href="#method.sample_iter-34" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.sample_iter" class="fnname">sample_iter</a><R>(self, rng: R) -> <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><Self, R, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T></span><code class="content"><span class="where fmt-newline">impl<D, R, T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T><span class="where fmt-newline">where<br> D: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,</span></span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = T;</span></code></span></span></span></span><span class="where fmt-newline">where<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create an iterator that generates random values of <code>T</code>, using <code>rng</code> as +the source of randomness. <a href="trait.Distribution.html#method.sample_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-34" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a><a href="#method.map-34" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.map" class="fnname">map</a><F, S>(self, func: F) -> <a class="struct" href="struct.DistMap.html" title="struct rand::distributions::DistMap">DistMap</a><Self, F, T, S><span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(T) -> S,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create a distribution of values of ‘S’ by mapping the output of <code>Self</code> +through the closure <code>F</code> <a href="trait.Distribution.html#method.map">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C(A%2C%20B%2C%20C%2C%20D%2C%20E%2C%20F%2C%20G%2C%20H%2C%20I%2C%20J%2C%20K)%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#189">source</a><a href="#impl-Distribution%3C(A%2C%20B%2C%20C%2C%20D%2C%20E%2C%20F%2C%20G%2C%20H%2C%20I%2C%20J%2C%20K)%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl<A, B, C, D, E, F, G, H, I, J, K> <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.tuple.html">(A, B, C, D, E, F, G, H, I, J, K)</a>> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a><span class="where fmt-newline">where<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><A>,<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><B>,<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><C>,<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><D>,<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><E>,<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><F>,<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><G>,<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><H>,<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><I>,<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><J>,<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><K>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample-33" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#189">source</a><a href="#method.sample-33" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#tymethod.sample" class="fnname">sample</a><R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(<br> &self,<br> _rng: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>R<br>) -> <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.tuple.html">(A, B, C, D, E, F, G, H, I, J, K)</a></h4></section></summary><div class='docblock'>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-33" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a><a href="#method.sample_iter-33" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.sample_iter" class="fnname">sample_iter</a><R>(self, rng: R) -> <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><Self, R, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T></span><code class="content"><span class="where fmt-newline">impl<D, R, T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T><span class="where fmt-newline">where<br> D: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,</span></span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = T;</span></code></span></span></span></span><span class="where fmt-newline">where<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create an iterator that generates random values of <code>T</code>, using <code>rng</code> as +the source of randomness. <a href="trait.Distribution.html#method.sample_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-33" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a><a href="#method.map-33" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.map" class="fnname">map</a><F, S>(self, func: F) -> <a class="struct" href="struct.DistMap.html" title="struct rand::distributions::DistMap">DistMap</a><Self, F, T, S><span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(T) -> S,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create a distribution of values of ‘S’ by mapping the output of <code>Self</code> +through the closure <code>F</code> <a href="trait.Distribution.html#method.map">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C(A%2C%20B%2C%20C%2C%20D%2C%20E%2C%20F%2C%20G%2C%20H%2C%20I%2C%20J)%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#188">source</a><a href="#impl-Distribution%3C(A%2C%20B%2C%20C%2C%20D%2C%20E%2C%20F%2C%20G%2C%20H%2C%20I%2C%20J)%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl<A, B, C, D, E, F, G, H, I, J> <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.tuple.html">(A, B, C, D, E, F, G, H, I, J)</a>> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a><span class="where fmt-newline">where<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><A>,<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><B>,<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><C>,<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><D>,<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><E>,<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><F>,<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><G>,<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><H>,<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><I>,<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><J>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample-32" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#188">source</a><a href="#method.sample-32" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#tymethod.sample" class="fnname">sample</a><R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.tuple.html">(A, B, C, D, E, F, G, H, I, J)</a></h4></section></summary><div class='docblock'>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-32" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a><a href="#method.sample_iter-32" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.sample_iter" class="fnname">sample_iter</a><R>(self, rng: R) -> <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><Self, R, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T></span><code class="content"><span class="where fmt-newline">impl<D, R, T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T><span class="where fmt-newline">where<br> D: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,</span></span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = T;</span></code></span></span></span></span><span class="where fmt-newline">where<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create an iterator that generates random values of <code>T</code>, using <code>rng</code> as +the source of randomness. <a href="trait.Distribution.html#method.sample_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-32" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a><a href="#method.map-32" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.map" class="fnname">map</a><F, S>(self, func: F) -> <a class="struct" href="struct.DistMap.html" title="struct rand::distributions::DistMap">DistMap</a><Self, F, T, S><span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(T) -> S,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create a distribution of values of ‘S’ by mapping the output of <code>Self</code> +through the closure <code>F</code> <a href="trait.Distribution.html#method.map">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C(A%2C%20B%2C%20C%2C%20D%2C%20E%2C%20F%2C%20G%2C%20H%2C%20I)%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#187">source</a><a href="#impl-Distribution%3C(A%2C%20B%2C%20C%2C%20D%2C%20E%2C%20F%2C%20G%2C%20H%2C%20I)%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl<A, B, C, D, E, F, G, H, I> <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.tuple.html">(A, B, C, D, E, F, G, H, I)</a>> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a><span class="where fmt-newline">where<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><A>,<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><B>,<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><C>,<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><D>,<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><E>,<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><F>,<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><G>,<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><H>,<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><I>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample-31" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#187">source</a><a href="#method.sample-31" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#tymethod.sample" class="fnname">sample</a><R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.tuple.html">(A, B, C, D, E, F, G, H, I)</a></h4></section></summary><div class='docblock'>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-31" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a><a href="#method.sample_iter-31" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.sample_iter" class="fnname">sample_iter</a><R>(self, rng: R) -> <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><Self, R, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T></span><code class="content"><span class="where fmt-newline">impl<D, R, T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T><span class="where fmt-newline">where<br> D: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,</span></span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = T;</span></code></span></span></span></span><span class="where fmt-newline">where<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create an iterator that generates random values of <code>T</code>, using <code>rng</code> as +the source of randomness. <a href="trait.Distribution.html#method.sample_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-31" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a><a href="#method.map-31" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.map" class="fnname">map</a><F, S>(self, func: F) -> <a class="struct" href="struct.DistMap.html" title="struct rand::distributions::DistMap">DistMap</a><Self, F, T, S><span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(T) -> S,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create a distribution of values of ‘S’ by mapping the output of <code>Self</code> +through the closure <code>F</code> <a href="trait.Distribution.html#method.map">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C(A%2C%20B%2C%20C%2C%20D%2C%20E%2C%20F%2C%20G%2C%20H)%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#186">source</a><a href="#impl-Distribution%3C(A%2C%20B%2C%20C%2C%20D%2C%20E%2C%20F%2C%20G%2C%20H)%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl<A, B, C, D, E, F, G, H> <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.tuple.html">(A, B, C, D, E, F, G, H)</a>> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a><span class="where fmt-newline">where<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><A>,<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><B>,<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><C>,<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><D>,<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><E>,<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><F>,<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><G>,<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><H>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample-30" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#186">source</a><a href="#method.sample-30" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#tymethod.sample" class="fnname">sample</a><R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.tuple.html">(A, B, C, D, E, F, G, H)</a></h4></section></summary><div class='docblock'>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-30" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a><a href="#method.sample_iter-30" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.sample_iter" class="fnname">sample_iter</a><R>(self, rng: R) -> <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><Self, R, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T></span><code class="content"><span class="where fmt-newline">impl<D, R, T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T><span class="where fmt-newline">where<br> D: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,</span></span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = T;</span></code></span></span></span></span><span class="where fmt-newline">where<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create an iterator that generates random values of <code>T</code>, using <code>rng</code> as +the source of randomness. <a href="trait.Distribution.html#method.sample_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-30" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a><a href="#method.map-30" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.map" class="fnname">map</a><F, S>(self, func: F) -> <a class="struct" href="struct.DistMap.html" title="struct rand::distributions::DistMap">DistMap</a><Self, F, T, S><span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(T) -> S,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create a distribution of values of ‘S’ by mapping the output of <code>Self</code> +through the closure <code>F</code> <a href="trait.Distribution.html#method.map">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C(A%2C%20B%2C%20C%2C%20D%2C%20E%2C%20F%2C%20G)%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#185">source</a><a href="#impl-Distribution%3C(A%2C%20B%2C%20C%2C%20D%2C%20E%2C%20F%2C%20G)%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl<A, B, C, D, E, F, G> <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.tuple.html">(A, B, C, D, E, F, G)</a>> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a><span class="where fmt-newline">where<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><A>,<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><B>,<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><C>,<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><D>,<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><E>,<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><F>,<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><G>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample-29" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#185">source</a><a href="#method.sample-29" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#tymethod.sample" class="fnname">sample</a><R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.tuple.html">(A, B, C, D, E, F, G)</a></h4></section></summary><div class='docblock'>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-29" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a><a href="#method.sample_iter-29" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.sample_iter" class="fnname">sample_iter</a><R>(self, rng: R) -> <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><Self, R, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T></span><code class="content"><span class="where fmt-newline">impl<D, R, T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T><span class="where fmt-newline">where<br> D: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,</span></span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = T;</span></code></span></span></span></span><span class="where fmt-newline">where<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create an iterator that generates random values of <code>T</code>, using <code>rng</code> as +the source of randomness. <a href="trait.Distribution.html#method.sample_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-29" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a><a href="#method.map-29" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.map" class="fnname">map</a><F, S>(self, func: F) -> <a class="struct" href="struct.DistMap.html" title="struct rand::distributions::DistMap">DistMap</a><Self, F, T, S><span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(T) -> S,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create a distribution of values of ‘S’ by mapping the output of <code>Self</code> +through the closure <code>F</code> <a href="trait.Distribution.html#method.map">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C(A%2C%20B%2C%20C%2C%20D%2C%20E%2C%20F)%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#184">source</a><a href="#impl-Distribution%3C(A%2C%20B%2C%20C%2C%20D%2C%20E%2C%20F)%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl<A, B, C, D, E, F> <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.tuple.html">(A, B, C, D, E, F)</a>> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a><span class="where fmt-newline">where<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><A>,<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><B>,<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><C>,<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><D>,<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><E>,<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><F>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample-28" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#184">source</a><a href="#method.sample-28" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#tymethod.sample" class="fnname">sample</a><R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.tuple.html">(A, B, C, D, E, F)</a></h4></section></summary><div class='docblock'>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-28" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a><a href="#method.sample_iter-28" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.sample_iter" class="fnname">sample_iter</a><R>(self, rng: R) -> <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><Self, R, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T></span><code class="content"><span class="where fmt-newline">impl<D, R, T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T><span class="where fmt-newline">where<br> D: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,</span></span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = T;</span></code></span></span></span></span><span class="where fmt-newline">where<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create an iterator that generates random values of <code>T</code>, using <code>rng</code> as +the source of randomness. <a href="trait.Distribution.html#method.sample_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-28" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a><a href="#method.map-28" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.map" class="fnname">map</a><F, S>(self, func: F) -> <a class="struct" href="struct.DistMap.html" title="struct rand::distributions::DistMap">DistMap</a><Self, F, T, S><span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(T) -> S,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create a distribution of values of ‘S’ by mapping the output of <code>Self</code> +through the closure <code>F</code> <a href="trait.Distribution.html#method.map">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C(A%2C%20B%2C%20C%2C%20D%2C%20E)%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#183">source</a><a href="#impl-Distribution%3C(A%2C%20B%2C%20C%2C%20D%2C%20E)%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl<A, B, C, D, E> <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.tuple.html">(A, B, C, D, E)</a>> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a><span class="where fmt-newline">where<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><A>,<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><B>,<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><C>,<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><D>,<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><E>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample-27" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#183">source</a><a href="#method.sample-27" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#tymethod.sample" class="fnname">sample</a><R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.tuple.html">(A, B, C, D, E)</a></h4></section></summary><div class='docblock'>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-27" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a><a href="#method.sample_iter-27" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.sample_iter" class="fnname">sample_iter</a><R>(self, rng: R) -> <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><Self, R, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T></span><code class="content"><span class="where fmt-newline">impl<D, R, T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T><span class="where fmt-newline">where<br> D: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,</span></span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = T;</span></code></span></span></span></span><span class="where fmt-newline">where<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create an iterator that generates random values of <code>T</code>, using <code>rng</code> as +the source of randomness. <a href="trait.Distribution.html#method.sample_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-27" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a><a href="#method.map-27" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.map" class="fnname">map</a><F, S>(self, func: F) -> <a class="struct" href="struct.DistMap.html" title="struct rand::distributions::DistMap">DistMap</a><Self, F, T, S><span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(T) -> S,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create a distribution of values of ‘S’ by mapping the output of <code>Self</code> +through the closure <code>F</code> <a href="trait.Distribution.html#method.map">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C(A%2C%20B%2C%20C%2C%20D)%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#182">source</a><a href="#impl-Distribution%3C(A%2C%20B%2C%20C%2C%20D)%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl<A, B, C, D> <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.tuple.html">(A, B, C, D)</a>> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a><span class="where fmt-newline">where<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><A>,<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><B>,<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><C>,<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><D>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample-26" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#182">source</a><a href="#method.sample-26" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#tymethod.sample" class="fnname">sample</a><R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.tuple.html">(A, B, C, D)</a></h4></section></summary><div class='docblock'>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-26" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a><a href="#method.sample_iter-26" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.sample_iter" class="fnname">sample_iter</a><R>(self, rng: R) -> <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><Self, R, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T></span><code class="content"><span class="where fmt-newline">impl<D, R, T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T><span class="where fmt-newline">where<br> D: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,</span></span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = T;</span></code></span></span></span></span><span class="where fmt-newline">where<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create an iterator that generates random values of <code>T</code>, using <code>rng</code> as +the source of randomness. <a href="trait.Distribution.html#method.sample_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-26" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a><a href="#method.map-26" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.map" class="fnname">map</a><F, S>(self, func: F) -> <a class="struct" href="struct.DistMap.html" title="struct rand::distributions::DistMap">DistMap</a><Self, F, T, S><span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(T) -> S,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create a distribution of values of ‘S’ by mapping the output of <code>Self</code> +through the closure <code>F</code> <a href="trait.Distribution.html#method.map">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C(A%2C%20B%2C%20C)%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#181">source</a><a href="#impl-Distribution%3C(A%2C%20B%2C%20C)%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl<A, B, C> <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.tuple.html">(A, B, C)</a>> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a><span class="where fmt-newline">where<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><A>,<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><B>,<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><C>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample-25" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#181">source</a><a href="#method.sample-25" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#tymethod.sample" class="fnname">sample</a><R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.tuple.html">(A, B, C)</a></h4></section></summary><div class='docblock'>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-25" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a><a href="#method.sample_iter-25" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.sample_iter" class="fnname">sample_iter</a><R>(self, rng: R) -> <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><Self, R, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T></span><code class="content"><span class="where fmt-newline">impl<D, R, T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T><span class="where fmt-newline">where<br> D: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,</span></span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = T;</span></code></span></span></span></span><span class="where fmt-newline">where<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create an iterator that generates random values of <code>T</code>, using <code>rng</code> as +the source of randomness. <a href="trait.Distribution.html#method.sample_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-25" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a><a href="#method.map-25" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.map" class="fnname">map</a><F, S>(self, func: F) -> <a class="struct" href="struct.DistMap.html" title="struct rand::distributions::DistMap">DistMap</a><Self, F, T, S><span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(T) -> S,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create a distribution of values of ‘S’ by mapping the output of <code>Self</code> +through the closure <code>F</code> <a href="trait.Distribution.html#method.map">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C(A%2C%20B)%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#180">source</a><a href="#impl-Distribution%3C(A%2C%20B)%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl<A, B> <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.tuple.html">(A, B)</a>> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a><span class="where fmt-newline">where<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><A>,<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><B>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample-24" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#180">source</a><a href="#method.sample-24" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#tymethod.sample" class="fnname">sample</a><R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.tuple.html">(A, B)</a></h4></section></summary><div class='docblock'>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-24" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a><a href="#method.sample_iter-24" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.sample_iter" class="fnname">sample_iter</a><R>(self, rng: R) -> <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><Self, R, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T></span><code class="content"><span class="where fmt-newline">impl<D, R, T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T><span class="where fmt-newline">where<br> D: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,</span></span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = T;</span></code></span></span></span></span><span class="where fmt-newline">where<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create an iterator that generates random values of <code>T</code>, using <code>rng</code> as +the source of randomness. <a href="trait.Distribution.html#method.sample_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-24" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a><a href="#method.map-24" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.map" class="fnname">map</a><F, S>(self, func: F) -> <a class="struct" href="struct.DistMap.html" title="struct rand::distributions::DistMap">DistMap</a><Self, F, T, S><span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(T) -> S,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create a distribution of values of ‘S’ by mapping the output of <code>Self</code> +through the closure <code>F</code> <a href="trait.Distribution.html#method.map">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C(A%2C)%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#179">source</a><a href="#impl-Distribution%3C(A%2C)%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl<A> <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.tuple.html">(A,)</a>> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a><span class="where fmt-newline">where<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><A>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample-23" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#179">source</a><a href="#method.sample-23" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#tymethod.sample" class="fnname">sample</a><R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.tuple.html">(A,)</a></h4></section></summary><div class='docblock'>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-23" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a><a href="#method.sample_iter-23" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.sample_iter" class="fnname">sample_iter</a><R>(self, rng: R) -> <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><Self, R, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T></span><code class="content"><span class="where fmt-newline">impl<D, R, T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T><span class="where fmt-newline">where<br> D: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,</span></span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = T;</span></code></span></span></span></span><span class="where fmt-newline">where<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create an iterator that generates random values of <code>T</code>, using <code>rng</code> as +the source of randomness. <a href="trait.Distribution.html#method.sample_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-23" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a><a href="#method.map-23" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.map" class="fnname">map</a><F, S>(self, func: F) -> <a class="struct" href="struct.DistMap.html" title="struct rand::distributions::DistMap">DistMap</a><Self, F, T, S><span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(T) -> S,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create a distribution of values of ‘S’ by mapping the output of <code>Self</code> +through the closure <code>F</code> <a href="trait.Distribution.html#method.map">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3CNonZeroU128%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/integer.rs.html#109">source</a><a href="#impl-Distribution%3CNonZeroU128%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="struct" href="https://doc.rust-lang.org/1.66.0/core/num/nonzero/struct.NonZeroU128.html" title="struct core::num::nonzero::NonZeroU128">NonZeroU128</a>> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample-18" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/integer.rs.html#109">source</a><a href="#method.sample-18" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#tymethod.sample" class="fnname">sample</a><R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, rng: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>R) -> <a class="struct" href="https://doc.rust-lang.org/1.66.0/core/num/nonzero/struct.NonZeroU128.html" title="struct core::num::nonzero::NonZeroU128">NonZeroU128</a></h4></section></summary><div class='docblock'>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-18" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a><a href="#method.sample_iter-18" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.sample_iter" class="fnname">sample_iter</a><R>(self, rng: R) -> <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><Self, R, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T></span><code class="content"><span class="where fmt-newline">impl<D, R, T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T><span class="where fmt-newline">where<br> D: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,</span></span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = T;</span></code></span></span></span></span><span class="where fmt-newline">where<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create an iterator that generates random values of <code>T</code>, using <code>rng</code> as +the source of randomness. <a href="trait.Distribution.html#method.sample_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-18" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a><a href="#method.map-18" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.map" class="fnname">map</a><F, S>(self, func: F) -> <a class="struct" href="struct.DistMap.html" title="struct rand::distributions::DistMap">DistMap</a><Self, F, T, S><span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(T) -> S,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create a distribution of values of ‘S’ by mapping the output of <code>Self</code> +through the closure <code>F</code> <a href="trait.Distribution.html#method.map">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3CNonZeroU16%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/integer.rs.html#106">source</a><a href="#impl-Distribution%3CNonZeroU16%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="struct" href="https://doc.rust-lang.org/1.66.0/core/num/nonzero/struct.NonZeroU16.html" title="struct core::num::nonzero::NonZeroU16">NonZeroU16</a>> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample-15" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/integer.rs.html#106">source</a><a href="#method.sample-15" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#tymethod.sample" class="fnname">sample</a><R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, rng: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>R) -> <a class="struct" href="https://doc.rust-lang.org/1.66.0/core/num/nonzero/struct.NonZeroU16.html" title="struct core::num::nonzero::NonZeroU16">NonZeroU16</a></h4></section></summary><div class='docblock'>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-15" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a><a href="#method.sample_iter-15" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.sample_iter" class="fnname">sample_iter</a><R>(self, rng: R) -> <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><Self, R, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T></span><code class="content"><span class="where fmt-newline">impl<D, R, T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T><span class="where fmt-newline">where<br> D: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,</span></span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = T;</span></code></span></span></span></span><span class="where fmt-newline">where<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create an iterator that generates random values of <code>T</code>, using <code>rng</code> as +the source of randomness. <a href="trait.Distribution.html#method.sample_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-15" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a><a href="#method.map-15" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.map" class="fnname">map</a><F, S>(self, func: F) -> <a class="struct" href="struct.DistMap.html" title="struct rand::distributions::DistMap">DistMap</a><Self, F, T, S><span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(T) -> S,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create a distribution of values of ‘S’ by mapping the output of <code>Self</code> +through the closure <code>F</code> <a href="trait.Distribution.html#method.map">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3CNonZeroU32%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/integer.rs.html#107">source</a><a href="#impl-Distribution%3CNonZeroU32%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="struct" href="https://doc.rust-lang.org/1.66.0/core/num/nonzero/struct.NonZeroU32.html" title="struct core::num::nonzero::NonZeroU32">NonZeroU32</a>> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample-16" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/integer.rs.html#107">source</a><a href="#method.sample-16" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#tymethod.sample" class="fnname">sample</a><R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, rng: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>R) -> <a class="struct" href="https://doc.rust-lang.org/1.66.0/core/num/nonzero/struct.NonZeroU32.html" title="struct core::num::nonzero::NonZeroU32">NonZeroU32</a></h4></section></summary><div class='docblock'>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-16" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a><a href="#method.sample_iter-16" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.sample_iter" class="fnname">sample_iter</a><R>(self, rng: R) -> <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><Self, R, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T></span><code class="content"><span class="where fmt-newline">impl<D, R, T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T><span class="where fmt-newline">where<br> D: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,</span></span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = T;</span></code></span></span></span></span><span class="where fmt-newline">where<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create an iterator that generates random values of <code>T</code>, using <code>rng</code> as +the source of randomness. <a href="trait.Distribution.html#method.sample_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-16" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a><a href="#method.map-16" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.map" class="fnname">map</a><F, S>(self, func: F) -> <a class="struct" href="struct.DistMap.html" title="struct rand::distributions::DistMap">DistMap</a><Self, F, T, S><span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(T) -> S,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create a distribution of values of ‘S’ by mapping the output of <code>Self</code> +through the closure <code>F</code> <a href="trait.Distribution.html#method.map">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3CNonZeroU64%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/integer.rs.html#108">source</a><a href="#impl-Distribution%3CNonZeroU64%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="struct" href="https://doc.rust-lang.org/1.66.0/core/num/nonzero/struct.NonZeroU64.html" title="struct core::num::nonzero::NonZeroU64">NonZeroU64</a>> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample-17" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/integer.rs.html#108">source</a><a href="#method.sample-17" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#tymethod.sample" class="fnname">sample</a><R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, rng: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>R) -> <a class="struct" href="https://doc.rust-lang.org/1.66.0/core/num/nonzero/struct.NonZeroU64.html" title="struct core::num::nonzero::NonZeroU64">NonZeroU64</a></h4></section></summary><div class='docblock'>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-17" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a><a href="#method.sample_iter-17" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.sample_iter" class="fnname">sample_iter</a><R>(self, rng: R) -> <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><Self, R, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T></span><code class="content"><span class="where fmt-newline">impl<D, R, T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T><span class="where fmt-newline">where<br> D: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,</span></span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = T;</span></code></span></span></span></span><span class="where fmt-newline">where<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create an iterator that generates random values of <code>T</code>, using <code>rng</code> as +the source of randomness. <a href="trait.Distribution.html#method.sample_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-17" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a><a href="#method.map-17" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.map" class="fnname">map</a><F, S>(self, func: F) -> <a class="struct" href="struct.DistMap.html" title="struct rand::distributions::DistMap">DistMap</a><Self, F, T, S><span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(T) -> S,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create a distribution of values of ‘S’ by mapping the output of <code>Self</code> +through the closure <code>F</code> <a href="trait.Distribution.html#method.map">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3CNonZeroU8%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/integer.rs.html#105">source</a><a href="#impl-Distribution%3CNonZeroU8%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="struct" href="https://doc.rust-lang.org/1.66.0/core/num/nonzero/struct.NonZeroU8.html" title="struct core::num::nonzero::NonZeroU8">NonZeroU8</a>> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample-14" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/integer.rs.html#105">source</a><a href="#method.sample-14" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#tymethod.sample" class="fnname">sample</a><R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, rng: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>R) -> <a class="struct" href="https://doc.rust-lang.org/1.66.0/core/num/nonzero/struct.NonZeroU8.html" title="struct core::num::nonzero::NonZeroU8">NonZeroU8</a></h4></section></summary><div class='docblock'>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-14" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a><a href="#method.sample_iter-14" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.sample_iter" class="fnname">sample_iter</a><R>(self, rng: R) -> <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><Self, R, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T></span><code class="content"><span class="where fmt-newline">impl<D, R, T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T><span class="where fmt-newline">where<br> D: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,</span></span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = T;</span></code></span></span></span></span><span class="where fmt-newline">where<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create an iterator that generates random values of <code>T</code>, using <code>rng</code> as +the source of randomness. <a href="trait.Distribution.html#method.sample_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-14" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a><a href="#method.map-14" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.map" class="fnname">map</a><F, S>(self, func: F) -> <a class="struct" href="struct.DistMap.html" title="struct rand::distributions::DistMap">DistMap</a><Self, F, T, S><span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(T) -> S,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create a distribution of values of ‘S’ by mapping the output of <code>Self</code> +through the closure <code>F</code> <a href="trait.Distribution.html#method.map">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3CNonZeroUsize%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/integer.rs.html#110">source</a><a href="#impl-Distribution%3CNonZeroUsize%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="struct" href="https://doc.rust-lang.org/1.66.0/core/num/nonzero/struct.NonZeroUsize.html" title="struct core::num::nonzero::NonZeroUsize">NonZeroUsize</a>> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample-19" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/integer.rs.html#110">source</a><a href="#method.sample-19" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#tymethod.sample" class="fnname">sample</a><R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, rng: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>R) -> <a class="struct" href="https://doc.rust-lang.org/1.66.0/core/num/nonzero/struct.NonZeroUsize.html" title="struct core::num::nonzero::NonZeroUsize">NonZeroUsize</a></h4></section></summary><div class='docblock'>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-19" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a><a href="#method.sample_iter-19" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.sample_iter" class="fnname">sample_iter</a><R>(self, rng: R) -> <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><Self, R, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T></span><code class="content"><span class="where fmt-newline">impl<D, R, T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T><span class="where fmt-newline">where<br> D: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,</span></span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = T;</span></code></span></span></span></span><span class="where fmt-newline">where<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create an iterator that generates random values of <code>T</code>, using <code>rng</code> as +the source of randomness. <a href="trait.Distribution.html#method.sample_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-19" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a><a href="#method.map-19" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.map" class="fnname">map</a><F, S>(self, func: F) -> <a class="struct" href="struct.DistMap.html" title="struct rand::distributions::DistMap">DistMap</a><Self, F, T, S><span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(T) -> S,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create a distribution of values of ‘S’ by mapping the output of <code>Self</code> +through the closure <code>F</code> <a href="trait.Distribution.html#method.map">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3COption%3CT%3E%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#233-245">source</a><a href="#impl-Distribution%3COption%3CT%3E%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl<T> <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="enum" href="https://doc.rust-lang.org/1.66.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><T>> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a><span class="where fmt-newline">where<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample-68" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#237-244">source</a><a href="#method.sample-68" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#tymethod.sample" class="fnname">sample</a><R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, rng: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>R) -> <a class="enum" href="https://doc.rust-lang.org/1.66.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><T></h4></section></summary><div class='docblock'>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-68" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a><a href="#method.sample_iter-68" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.sample_iter" class="fnname">sample_iter</a><R>(self, rng: R) -> <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><Self, R, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T></span><code class="content"><span class="where fmt-newline">impl<D, R, T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T><span class="where fmt-newline">where<br> D: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,</span></span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = T;</span></code></span></span></span></span><span class="where fmt-newline">where<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create an iterator that generates random values of <code>T</code>, using <code>rng</code> as +the source of randomness. <a href="trait.Distribution.html#method.sample_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-68" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a><a href="#method.map-68" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.map" class="fnname">map</a><F, S>(self, func: F) -> <a class="struct" href="struct.DistMap.html" title="struct rand::distributions::DistMap">DistMap</a><Self, F, T, S><span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(T) -> S,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create a distribution of values of ‘S’ by mapping the output of <code>Self</code> +through the closure <code>F</code> <a href="trait.Distribution.html#method.map">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3CWrapping%3CT%3E%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#247-254">source</a><a href="#impl-Distribution%3CWrapping%3CT%3E%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl<T> <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="struct" href="https://doc.rust-lang.org/1.66.0/core/num/wrapping/struct.Wrapping.html" title="struct core::num::wrapping::Wrapping">Wrapping</a><T>> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a><span class="where fmt-newline">where<br> <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a>: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample-69" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#251-253">source</a><a href="#method.sample-69" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#tymethod.sample" class="fnname">sample</a><R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, rng: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>R) -> <a class="struct" href="https://doc.rust-lang.org/1.66.0/core/num/wrapping/struct.Wrapping.html" title="struct core::num::wrapping::Wrapping">Wrapping</a><T></h4></section></summary><div class='docblock'>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-69" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a><a href="#method.sample_iter-69" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.sample_iter" class="fnname">sample_iter</a><R>(self, rng: R) -> <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><Self, R, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T></span><code class="content"><span class="where fmt-newline">impl<D, R, T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T><span class="where fmt-newline">where<br> D: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,</span></span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = T;</span></code></span></span></span></span><span class="where fmt-newline">where<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create an iterator that generates random values of <code>T</code>, using <code>rng</code> as +the source of randomness. <a href="trait.Distribution.html#method.sample_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-69" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a><a href="#method.map-69" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.map" class="fnname">map</a><F, S>(self, func: F) -> <a class="struct" href="struct.DistMap.html" title="struct rand::distributions::DistMap">DistMap</a><Self, F, T, S><span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(T) -> S,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create a distribution of values of ‘S’ by mapping the output of <code>Self</code> +through the closure <code>F</code> <a href="trait.Distribution.html#method.map">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3Cbool%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#137-146">source</a><a href="#impl-Distribution%3Cbool%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.bool.html">bool</a>> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample-21" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#139-145">source</a><a href="#method.sample-21" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#tymethod.sample" class="fnname">sample</a><R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, rng: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-21" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a><a href="#method.sample_iter-21" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.sample_iter" class="fnname">sample_iter</a><R>(self, rng: R) -> <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><Self, R, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T></span><code class="content"><span class="where fmt-newline">impl<D, R, T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T><span class="where fmt-newline">where<br> D: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,</span></span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = T;</span></code></span></span></span></span><span class="where fmt-newline">where<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create an iterator that generates random values of <code>T</code>, using <code>rng</code> as +the source of randomness. <a href="trait.Distribution.html#method.sample_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-21" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a><a href="#method.map-21" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.map" class="fnname">map</a><F, S>(self, func: F) -> <a class="struct" href="struct.DistMap.html" title="struct rand::distributions::DistMap">DistMap</a><Self, F, T, S><span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(T) -> S,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create a distribution of values of ‘S’ by mapping the output of <code>Self</code> +through the closure <code>F</code> <a href="trait.Distribution.html#method.map">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3Cchar%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#74-93">source</a><a href="#impl-Distribution%3Cchar%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.char.html">char</a>> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample-20" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/other.rs.html#76-92">source</a><a href="#method.sample-20" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#tymethod.sample" class="fnname">sample</a><R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, rng: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.char.html">char</a></h4></section></summary><div class='docblock'>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-20" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a><a href="#method.sample_iter-20" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.sample_iter" class="fnname">sample_iter</a><R>(self, rng: R) -> <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><Self, R, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T></span><code class="content"><span class="where fmt-newline">impl<D, R, T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T><span class="where fmt-newline">where<br> D: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,</span></span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = T;</span></code></span></span></span></span><span class="where fmt-newline">where<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create an iterator that generates random values of <code>T</code>, using <code>rng</code> as +the source of randomness. <a href="trait.Distribution.html#method.sample_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-20" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a><a href="#method.map-20" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.map" class="fnname">map</a><F, S>(self, func: F) -> <a class="struct" href="struct.DistMap.html" title="struct rand::distributions::DistMap">DistMap</a><Self, F, T, S><span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(T) -> S,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create a distribution of values of ‘S’ by mapping the output of <code>Self</code> +through the closure <code>F</code> <a href="trait.Distribution.html#method.map">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3Cf32%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/float.rs.html#153">source</a><a href="#impl-Distribution%3Cf32%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.f32.html">f32</a>> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/float.rs.html#153">source</a><a href="#method.sample" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#tymethod.sample" class="fnname">sample</a><R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, rng: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.f32.html">f32</a></h4></section></summary><div class='docblock'>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a><a href="#method.sample_iter" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.sample_iter" class="fnname">sample_iter</a><R>(self, rng: R) -> <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><Self, R, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T></span><code class="content"><span class="where fmt-newline">impl<D, R, T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T><span class="where fmt-newline">where<br> D: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,</span></span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = T;</span></code></span></span></span></span><span class="where fmt-newline">where<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create an iterator that generates random values of <code>T</code>, using <code>rng</code> as +the source of randomness. <a href="trait.Distribution.html#method.sample_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a><a href="#method.map" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.map" class="fnname">map</a><F, S>(self, func: F) -> <a class="struct" href="struct.DistMap.html" title="struct rand::distributions::DistMap">DistMap</a><Self, F, T, S><span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(T) -> S,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create a distribution of values of ‘S’ by mapping the output of <code>Self</code> +through the closure <code>F</code> <a href="trait.Distribution.html#method.map">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3Cf64%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/float.rs.html#154">source</a><a href="#impl-Distribution%3Cf64%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.f64.html">f64</a>> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/float.rs.html#154">source</a><a href="#method.sample-1" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#tymethod.sample" class="fnname">sample</a><R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, rng: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.f64.html">f64</a></h4></section></summary><div class='docblock'>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a><a href="#method.sample_iter-1" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.sample_iter" class="fnname">sample_iter</a><R>(self, rng: R) -> <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><Self, R, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T></span><code class="content"><span class="where fmt-newline">impl<D, R, T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T><span class="where fmt-newline">where<br> D: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,</span></span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = T;</span></code></span></span></span></span><span class="where fmt-newline">where<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create an iterator that generates random values of <code>T</code>, using <code>rng</code> as +the source of randomness. <a href="trait.Distribution.html#method.sample_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a><a href="#method.map-1" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.map" class="fnname">map</a><F, S>(self, func: F) -> <a class="struct" href="struct.DistMap.html" title="struct rand::distributions::DistMap">DistMap</a><Self, F, T, S><span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(T) -> S,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create a distribution of values of ‘S’ by mapping the output of <code>Self</code> +through the closure <code>F</code> <a href="trait.Distribution.html#method.map">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3Ci128%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/integer.rs.html#88">source</a><a href="#impl-Distribution%3Ci128%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.i128.html">i128</a>> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample-12" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/integer.rs.html#88">source</a><a href="#method.sample-12" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#tymethod.sample" class="fnname">sample</a><R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, rng: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.i128.html">i128</a></h4></section></summary><div class='docblock'>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-12" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a><a href="#method.sample_iter-12" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.sample_iter" class="fnname">sample_iter</a><R>(self, rng: R) -> <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><Self, R, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T></span><code class="content"><span class="where fmt-newline">impl<D, R, T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T><span class="where fmt-newline">where<br> D: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,</span></span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = T;</span></code></span></span></span></span><span class="where fmt-newline">where<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create an iterator that generates random values of <code>T</code>, using <code>rng</code> as +the source of randomness. <a href="trait.Distribution.html#method.sample_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-12" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a><a href="#method.map-12" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.map" class="fnname">map</a><F, S>(self, func: F) -> <a class="struct" href="struct.DistMap.html" title="struct rand::distributions::DistMap">DistMap</a><Self, F, T, S><span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(T) -> S,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create a distribution of values of ‘S’ by mapping the output of <code>Self</code> +through the closure <code>F</code> <a href="trait.Distribution.html#method.map">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3Ci16%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/integer.rs.html#85">source</a><a href="#impl-Distribution%3Ci16%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.i16.html">i16</a>> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample-9" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/integer.rs.html#85">source</a><a href="#method.sample-9" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#tymethod.sample" class="fnname">sample</a><R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, rng: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.i16.html">i16</a></h4></section></summary><div class='docblock'>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-9" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a><a href="#method.sample_iter-9" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.sample_iter" class="fnname">sample_iter</a><R>(self, rng: R) -> <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><Self, R, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T></span><code class="content"><span class="where fmt-newline">impl<D, R, T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T><span class="where fmt-newline">where<br> D: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,</span></span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = T;</span></code></span></span></span></span><span class="where fmt-newline">where<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create an iterator that generates random values of <code>T</code>, using <code>rng</code> as +the source of randomness. <a href="trait.Distribution.html#method.sample_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-9" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a><a href="#method.map-9" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.map" class="fnname">map</a><F, S>(self, func: F) -> <a class="struct" href="struct.DistMap.html" title="struct rand::distributions::DistMap">DistMap</a><Self, F, T, S><span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(T) -> S,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create a distribution of values of ‘S’ by mapping the output of <code>Self</code> +through the closure <code>F</code> <a href="trait.Distribution.html#method.map">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3Ci32%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/integer.rs.html#86">source</a><a href="#impl-Distribution%3Ci32%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.i32.html">i32</a>> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample-10" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/integer.rs.html#86">source</a><a href="#method.sample-10" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#tymethod.sample" class="fnname">sample</a><R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, rng: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.i32.html">i32</a></h4></section></summary><div class='docblock'>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-10" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a><a href="#method.sample_iter-10" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.sample_iter" class="fnname">sample_iter</a><R>(self, rng: R) -> <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><Self, R, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T></span><code class="content"><span class="where fmt-newline">impl<D, R, T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T><span class="where fmt-newline">where<br> D: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,</span></span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = T;</span></code></span></span></span></span><span class="where fmt-newline">where<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create an iterator that generates random values of <code>T</code>, using <code>rng</code> as +the source of randomness. <a href="trait.Distribution.html#method.sample_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-10" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a><a href="#method.map-10" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.map" class="fnname">map</a><F, S>(self, func: F) -> <a class="struct" href="struct.DistMap.html" title="struct rand::distributions::DistMap">DistMap</a><Self, F, T, S><span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(T) -> S,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create a distribution of values of ‘S’ by mapping the output of <code>Self</code> +through the closure <code>F</code> <a href="trait.Distribution.html#method.map">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3Ci64%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/integer.rs.html#87">source</a><a href="#impl-Distribution%3Ci64%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.i64.html">i64</a>> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample-11" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/integer.rs.html#87">source</a><a href="#method.sample-11" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#tymethod.sample" class="fnname">sample</a><R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, rng: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.i64.html">i64</a></h4></section></summary><div class='docblock'>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-11" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a><a href="#method.sample_iter-11" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.sample_iter" class="fnname">sample_iter</a><R>(self, rng: R) -> <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><Self, R, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T></span><code class="content"><span class="where fmt-newline">impl<D, R, T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T><span class="where fmt-newline">where<br> D: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,</span></span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = T;</span></code></span></span></span></span><span class="where fmt-newline">where<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create an iterator that generates random values of <code>T</code>, using <code>rng</code> as +the source of randomness. <a href="trait.Distribution.html#method.sample_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-11" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a><a href="#method.map-11" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.map" class="fnname">map</a><F, S>(self, func: F) -> <a class="struct" href="struct.DistMap.html" title="struct rand::distributions::DistMap">DistMap</a><Self, F, T, S><span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(T) -> S,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create a distribution of values of ‘S’ by mapping the output of <code>Self</code> +through the closure <code>F</code> <a href="trait.Distribution.html#method.map">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3Ci8%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/integer.rs.html#84">source</a><a href="#impl-Distribution%3Ci8%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.i8.html">i8</a>> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample-8" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/integer.rs.html#84">source</a><a href="#method.sample-8" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#tymethod.sample" class="fnname">sample</a><R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, rng: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.i8.html">i8</a></h4></section></summary><div class='docblock'>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-8" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a><a href="#method.sample_iter-8" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.sample_iter" class="fnname">sample_iter</a><R>(self, rng: R) -> <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><Self, R, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T></span><code class="content"><span class="where fmt-newline">impl<D, R, T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T><span class="where fmt-newline">where<br> D: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,</span></span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = T;</span></code></span></span></span></span><span class="where fmt-newline">where<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create an iterator that generates random values of <code>T</code>, using <code>rng</code> as +the source of randomness. <a href="trait.Distribution.html#method.sample_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-8" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a><a href="#method.map-8" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.map" class="fnname">map</a><F, S>(self, func: F) -> <a class="struct" href="struct.DistMap.html" title="struct rand::distributions::DistMap">DistMap</a><Self, F, T, S><span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(T) -> S,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create a distribution of values of ‘S’ by mapping the output of <code>Self</code> +through the closure <code>F</code> <a href="trait.Distribution.html#method.map">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3Cisize%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/integer.rs.html#89">source</a><a href="#impl-Distribution%3Cisize%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.isize.html">isize</a>> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample-13" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/integer.rs.html#89">source</a><a href="#method.sample-13" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#tymethod.sample" class="fnname">sample</a><R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, rng: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.isize.html">isize</a></h4></section></summary><div class='docblock'>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-13" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a><a href="#method.sample_iter-13" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.sample_iter" class="fnname">sample_iter</a><R>(self, rng: R) -> <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><Self, R, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T></span><code class="content"><span class="where fmt-newline">impl<D, R, T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T><span class="where fmt-newline">where<br> D: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,</span></span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = T;</span></code></span></span></span></span><span class="where fmt-newline">where<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create an iterator that generates random values of <code>T</code>, using <code>rng</code> as +the source of randomness. <a href="trait.Distribution.html#method.sample_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-13" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a><a href="#method.map-13" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.map" class="fnname">map</a><F, S>(self, func: F) -> <a class="struct" href="struct.DistMap.html" title="struct rand::distributions::DistMap">DistMap</a><Self, F, T, S><span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(T) -> S,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create a distribution of values of ‘S’ by mapping the output of <code>Self</code> +through the closure <code>F</code> <a href="trait.Distribution.html#method.map">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3Cu128%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/integer.rs.html#49-57">source</a><a href="#impl-Distribution%3Cu128%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.u128.html">u128</a>> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample-6" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/integer.rs.html#51-56">source</a><a href="#method.sample-6" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#tymethod.sample" class="fnname">sample</a><R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, rng: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.u128.html">u128</a></h4></section></summary><div class='docblock'>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-6" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a><a href="#method.sample_iter-6" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.sample_iter" class="fnname">sample_iter</a><R>(self, rng: R) -> <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><Self, R, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T></span><code class="content"><span class="where fmt-newline">impl<D, R, T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T><span class="where fmt-newline">where<br> D: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,</span></span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = T;</span></code></span></span></span></span><span class="where fmt-newline">where<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create an iterator that generates random values of <code>T</code>, using <code>rng</code> as +the source of randomness. <a href="trait.Distribution.html#method.sample_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-6" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a><a href="#method.map-6" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.map" class="fnname">map</a><F, S>(self, func: F) -> <a class="struct" href="struct.DistMap.html" title="struct rand::distributions::DistMap">DistMap</a><Self, F, T, S><span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(T) -> S,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create a distribution of values of ‘S’ by mapping the output of <code>Self</code> +through the closure <code>F</code> <a href="trait.Distribution.html#method.map">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3Cu16%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/integer.rs.html#28-33">source</a><a href="#impl-Distribution%3Cu16%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.u16.html">u16</a>> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample-3" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/integer.rs.html#30-32">source</a><a href="#method.sample-3" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#tymethod.sample" class="fnname">sample</a><R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, rng: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.u16.html">u16</a></h4></section></summary><div class='docblock'>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-3" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a><a href="#method.sample_iter-3" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.sample_iter" class="fnname">sample_iter</a><R>(self, rng: R) -> <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><Self, R, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T></span><code class="content"><span class="where fmt-newline">impl<D, R, T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T><span class="where fmt-newline">where<br> D: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,</span></span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = T;</span></code></span></span></span></span><span class="where fmt-newline">where<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create an iterator that generates random values of <code>T</code>, using <code>rng</code> as +the source of randomness. <a href="trait.Distribution.html#method.sample_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-3" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a><a href="#method.map-3" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.map" class="fnname">map</a><F, S>(self, func: F) -> <a class="struct" href="struct.DistMap.html" title="struct rand::distributions::DistMap">DistMap</a><Self, F, T, S><span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(T) -> S,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create a distribution of values of ‘S’ by mapping the output of <code>Self</code> +through the closure <code>F</code> <a href="trait.Distribution.html#method.map">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3Cu32%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/integer.rs.html#35-40">source</a><a href="#impl-Distribution%3Cu32%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.u32.html">u32</a>> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample-4" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/integer.rs.html#37-39">source</a><a href="#method.sample-4" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#tymethod.sample" class="fnname">sample</a><R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, rng: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.u32.html">u32</a></h4></section></summary><div class='docblock'>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-4" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a><a href="#method.sample_iter-4" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.sample_iter" class="fnname">sample_iter</a><R>(self, rng: R) -> <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><Self, R, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T></span><code class="content"><span class="where fmt-newline">impl<D, R, T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T><span class="where fmt-newline">where<br> D: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,</span></span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = T;</span></code></span></span></span></span><span class="where fmt-newline">where<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create an iterator that generates random values of <code>T</code>, using <code>rng</code> as +the source of randomness. <a href="trait.Distribution.html#method.sample_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-4" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a><a href="#method.map-4" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.map" class="fnname">map</a><F, S>(self, func: F) -> <a class="struct" href="struct.DistMap.html" title="struct rand::distributions::DistMap">DistMap</a><Self, F, T, S><span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(T) -> S,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create a distribution of values of ‘S’ by mapping the output of <code>Self</code> +through the closure <code>F</code> <a href="trait.Distribution.html#method.map">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3Cu64%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/integer.rs.html#42-47">source</a><a href="#impl-Distribution%3Cu64%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.u64.html">u64</a>> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample-5" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/integer.rs.html#44-46">source</a><a href="#method.sample-5" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#tymethod.sample" class="fnname">sample</a><R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, rng: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.u64.html">u64</a></h4></section></summary><div class='docblock'>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-5" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a><a href="#method.sample_iter-5" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.sample_iter" class="fnname">sample_iter</a><R>(self, rng: R) -> <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><Self, R, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T></span><code class="content"><span class="where fmt-newline">impl<D, R, T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T><span class="where fmt-newline">where<br> D: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,</span></span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = T;</span></code></span></span></span></span><span class="where fmt-newline">where<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create an iterator that generates random values of <code>T</code>, using <code>rng</code> as +the source of randomness. <a href="trait.Distribution.html#method.sample_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-5" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a><a href="#method.map-5" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.map" class="fnname">map</a><F, S>(self, func: F) -> <a class="struct" href="struct.DistMap.html" title="struct rand::distributions::DistMap">DistMap</a><Self, F, T, S><span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(T) -> S,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create a distribution of values of ‘S’ by mapping the output of <code>Self</code> +through the closure <code>F</code> <a href="trait.Distribution.html#method.map">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3Cu8%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/integer.rs.html#21-26">source</a><a href="#impl-Distribution%3Cu8%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.u8.html">u8</a>> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample-2" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/integer.rs.html#23-25">source</a><a href="#method.sample-2" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#tymethod.sample" class="fnname">sample</a><R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, rng: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.u8.html">u8</a></h4></section></summary><div class='docblock'>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-2" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a><a href="#method.sample_iter-2" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.sample_iter" class="fnname">sample_iter</a><R>(self, rng: R) -> <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><Self, R, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T></span><code class="content"><span class="where fmt-newline">impl<D, R, T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T><span class="where fmt-newline">where<br> D: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,</span></span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = T;</span></code></span></span></span></span><span class="where fmt-newline">where<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create an iterator that generates random values of <code>T</code>, using <code>rng</code> as +the source of randomness. <a href="trait.Distribution.html#method.sample_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-2" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a><a href="#method.map-2" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.map" class="fnname">map</a><F, S>(self, func: F) -> <a class="struct" href="struct.DistMap.html" title="struct rand::distributions::DistMap">DistMap</a><Self, F, T, S><span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(T) -> S,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create a distribution of values of ‘S’ by mapping the output of <code>Self</code> +through the closure <code>F</code> <a href="trait.Distribution.html#method.map">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3Cusize%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/integer.rs.html#59-71">source</a><a href="#impl-Distribution%3Cusize%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.usize.html">usize</a>> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample-7" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/integer.rs.html#68-70">source</a><a href="#method.sample-7" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#tymethod.sample" class="fnname">sample</a><R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, rng: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.usize.html">usize</a></h4></section></summary><div class='docblock'>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-7" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a><a href="#method.sample_iter-7" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.sample_iter" class="fnname">sample_iter</a><R>(self, rng: R) -> <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><Self, R, T><span class="notable-traits"><span class="notable-traits-tooltip">ⓘ<span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T></span><code class="content"><span class="where fmt-newline">impl<D, R, T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.DistIter.html" title="struct rand::distributions::DistIter">DistIter</a><D, R, T><span class="where fmt-newline">where<br> D: <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><T>,<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,</span></span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.66.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = T;</span></code></span></span></span></span><span class="where fmt-newline">where<br> R: <a class="trait" href="../trait.Rng.html" title="trait rand::Rng">Rng</a>,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create an iterator that generates random values of <code>T</code>, using <code>rng</code> as +the source of randomness. <a href="trait.Distribution.html#method.sample_iter">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-7" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a><a href="#method.map-7" class="anchor"></a><h4 class="code-header">fn <a href="trait.Distribution.html#method.map" class="fnname">map</a><F, S>(self, func: F) -> <a class="struct" href="struct.DistMap.html" title="struct rand::distributions::DistMap">DistMap</a><Self, F, T, S><span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/ops/function/trait.Fn.html" title="trait core::ops::function::Fn">Fn</a>(T) -> S,<br> Self: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h4></section></summary><div class='docblock'>Create a distribution of values of ‘S’ by mapping the output of <code>Self</code> +through the closure <code>F</code> <a href="trait.Distribution.html#method.map">Read more</a></div></details></div></details><section id="impl-Copy-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/rand/distributions/mod.rs.html#216">source</a><a href="#impl-Copy-for-Standard" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a></h3></section></div><h2 id="synthetic-implementations" class="small-section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor"></a></h2><div id="synthetic-implementations-list"><section id="impl-RefUnwindSafe-for-Standard" class="impl has-srclink"><a href="#impl-RefUnwindSafe-for-Standard" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a></h3></section><section id="impl-Send-for-Standard" class="impl has-srclink"><a href="#impl-Send-for-Standard" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a></h3></section><section id="impl-Sync-for-Standard" class="impl has-srclink"><a href="#impl-Sync-for-Standard" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a></h3></section><section id="impl-Unpin-for-Standard" class="impl has-srclink"><a href="#impl-Unpin-for-Standard" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a></h3></section><section id="impl-UnwindSafe-for-Standard" class="impl has-srclink"><a href="#impl-UnwindSafe-for-Standard" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="struct" href="struct.Standard.html" title="struct rand::distributions::Standard">Standard</a></h3></section></div><h2 id="blanket-implementations" class="small-section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor"></a></h2><div id="blanket-implementations-list"><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Any-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="https://doc.rust-lang.org/1.66.0/src/core/any.rs.html#200">source</a><a href="#impl-Any-for-Standard" class="anchor"></a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T<span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl has-srclink"><a class="srclink rightside" href="https://doc.rust-lang.org/1.66.0/src/core/any.rs.html#201">source</a><a href="#method.type_id" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.66.0/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.66.0/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4></section></summary><div class='docblock'>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/1.66.0/core/any/trait.Any.html#tymethod.type_id">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Borrow%3CT%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="https://doc.rust-lang.org/1.66.0/src/core/borrow.rs.html#211">source</a><a href="#impl-Borrow%3CT%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T<span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.borrow" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/91522" title="Tracking issue for const_borrow">unstable</a></span> · <a class="srclink" href="https://doc.rust-lang.org/1.66.0/src/core/borrow.rs.html#213">source</a></span><a href="#method.borrow" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.66.0/core/borrow/trait.Borrow.html#tymethod.borrow" class="fnname">borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&</a>T</h4></section></summary><div class='docblock'>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.66.0/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-BorrowMut%3CT%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="https://doc.rust-lang.org/1.66.0/src/core/borrow.rs.html#220">source</a><a href="#impl-BorrowMut%3CT%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T<span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/1.66.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.borrow_mut" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/91522" title="Tracking issue for const_borrow">unstable</a></span> · <a class="srclink" href="https://doc.rust-lang.org/1.66.0/src/core/borrow.rs.html#221">source</a></span><a href="#method.borrow_mut" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.66.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fnname">borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>T</h4></section></summary><div class='docblock'>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.66.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-From%3CT%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="https://doc.rust-lang.org/1.66.0/src/core/convert/mod.rs.html#733">source</a><a href="#impl-From%3CT%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for T</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span> · <a class="srclink" href="https://doc.rust-lang.org/1.66.0/src/core/convert/mod.rs.html#736">source</a></span><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.66.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(t: T) -> T</h4></section></summary><div class="docblock"><p>Returns the argument unchanged.</p> +</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Into%3CU%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="https://doc.rust-lang.org/1.66.0/src/core/convert/mod.rs.html#717">source</a><a href="#impl-Into%3CU%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T<span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.into" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span> · <a class="srclink" href="https://doc.rust-lang.org/1.66.0/src/core/convert/mod.rs.html#725">source</a></span><a href="#method.into" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.66.0/core/convert/trait.Into.html#tymethod.into" class="fnname">into</a>(self) -> U</h4></section></summary><div class="docblock"><p>Calls <code>U::from(self)</code>.</p> +<p>That is, this conversion is whatever the implementation of +<code><a href="https://doc.rust-lang.org/1.66.0/core/convert/trait.From.html" title="From">From</a><T> for U</code> chooses to do.</p> +</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-ToOwned-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="https://doc.rust-lang.org/1.66.0/src/alloc/borrow.rs.html#82">source</a><a href="#impl-ToOwned-for-Standard" class="anchor"></a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.66.0/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a> for T<span class="where fmt-newline">where<br> T: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Owned" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Owned" class="anchor"></a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.66.0/alloc/borrow/trait.ToOwned.html#associatedtype.Owned" class="associatedtype">Owned</a> = T</h4></section></summary><div class='docblock'>The resulting type after obtaining ownership.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_owned" class="method trait-impl has-srclink"><a class="srclink rightside" href="https://doc.rust-lang.org/1.66.0/src/alloc/borrow.rs.html#87">source</a><a href="#method.to_owned" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.66.0/alloc/borrow/trait.ToOwned.html#tymethod.to_owned" class="fnname">to_owned</a>(&self) -> T</h4></section></summary><div class='docblock'>Creates owned data from borrowed data, usually by cloning. <a href="https://doc.rust-lang.org/1.66.0/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_into" class="method trait-impl has-srclink"><a class="srclink rightside" href="https://doc.rust-lang.org/1.66.0/src/alloc/borrow.rs.html#91">source</a><a href="#method.clone_into" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.66.0/alloc/borrow/trait.ToOwned.html#method.clone_into" class="fnname">clone_into</a>(&self, target: <a class="primitive" href="https://doc.rust-lang.org/1.66.0/std/primitive.reference.html">&mut </a>T)</h4></section></summary><div class='docblock'>Uses borrowed data to replace owned data, usually by cloning. <a href="https://doc.rust-lang.org/1.66.0/alloc/borrow/trait.ToOwned.html#method.clone_into">Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-TryFrom%3CU%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="https://doc.rust-lang.org/1.66.0/src/core/convert/mod.rs.html#775">source</a><a href="#impl-TryFrom%3CU%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T<span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Error" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Error" class="anchor"></a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.66.0/core/convert/trait.TryFrom.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="enum" href="https://doc.rust-lang.org/1.66.0/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.try_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span> · <a class="srclink" href="https://doc.rust-lang.org/1.66.0/src/core/convert/mod.rs.html#781">source</a></span><a href="#method.try_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.66.0/core/convert/trait.TryFrom.html#tymethod.try_from" class="fnname">try_from</a>(value: U) -> <a class="enum" href="https://doc.rust-lang.org/1.66.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.66.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-TryInto%3CU%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="https://doc.rust-lang.org/1.66.0/src/core/convert/mod.rs.html#760">source</a><a href="#impl-TryInto%3CU%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T<span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Error-1" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Error-1" class="anchor"></a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.66.0/core/convert/trait.TryInto.html#associatedtype.Error" class="associatedtype">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.66.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.try_into" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span> · <a class="srclink" href="https://doc.rust-lang.org/1.66.0/src/core/convert/mod.rs.html#766">source</a></span><a href="#method.try_into" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.66.0/core/convert/trait.TryInto.html#tymethod.try_into" class="fnname">try_into</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/1.66.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <U as <a class="trait" href="https://doc.rust-lang.org/1.66.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.66.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-VZip%3CV%3E-for-Standard" class="impl has-srclink"><a class="srclink rightside" href="../../src/ppv_lite86/types.rs.html#221">source</a><a href="#impl-VZip%3CV%3E-for-Standard" class="anchor"></a><h3 class="code-header">impl<V, T> <a class="trait" href="../../ppv_lite86/types/trait.VZip.html" title="trait ppv_lite86::types::VZip">VZip</a><V> for T<span class="where fmt-newline">where<br> V: <a class="trait" href="../../ppv_lite86/types/trait.MultiLane.html" title="trait ppv_lite86::types::MultiLane">MultiLane</a><T>,</span></h3></section></summary><div class="impl-items"><section id="method.vzip" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/ppv_lite86/types.rs.html#226">source</a><a href="#method.vzip" class="anchor"></a><h4 class="code-header">fn <a href="../../ppv_lite86/types/trait.VZip.html#tymethod.vzip" class="fnname">vzip</a>(self) -> V</h4></section></div></details></div></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-current-crate="rand" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.66.0 (69f9c33d7 2022-12-12) (Arch Linux rust 1:1.66.0-1)" ></div></body></html>
\ No newline at end of file |