forked from diesel-rs/diesel
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstruct.Standard.html
More file actions
450 lines (446 loc) · 445 KB
/
Copy pathstruct.Standard.html
File metadata and controls
450 lines (446 loc) · 445 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
<!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" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../dark.css" disabled><link rel="stylesheet" type="text/css" 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 class="location"></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><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-Clone">Clone</a></li><li><a href="#impl-Copy">Copy</a></li><li><a href="#impl-Debug">Debug</a></li><li><a href="#impl-DistString">DistString</a></li><li><a href="#impl-Distribution%3C%5BT%3B%200%5D%3E">Distribution<[T; 0]></a></li><li><a href="#impl-Distribution%3C%5BT%3B%201%5D%3E">Distribution<[T; 1]></a></li><li><a href="#impl-Distribution%3C%5BT%3B%2010%5D%3E">Distribution<[T; 10]></a></li><li><a href="#impl-Distribution%3C%5BT%3B%2011%5D%3E">Distribution<[T; 11]></a></li><li><a href="#impl-Distribution%3C%5BT%3B%2012%5D%3E">Distribution<[T; 12]></a></li><li><a href="#impl-Distribution%3C%5BT%3B%2013%5D%3E">Distribution<[T; 13]></a></li><li><a href="#impl-Distribution%3C%5BT%3B%2014%5D%3E">Distribution<[T; 14]></a></li><li><a href="#impl-Distribution%3C%5BT%3B%2015%5D%3E">Distribution<[T; 15]></a></li><li><a href="#impl-Distribution%3C%5BT%3B%2016%5D%3E">Distribution<[T; 16]></a></li><li><a href="#impl-Distribution%3C%5BT%3B%2017%5D%3E">Distribution<[T; 17]></a></li><li><a href="#impl-Distribution%3C%5BT%3B%2018%5D%3E">Distribution<[T; 18]></a></li><li><a href="#impl-Distribution%3C%5BT%3B%2019%5D%3E">Distribution<[T; 19]></a></li><li><a href="#impl-Distribution%3C%5BT%3B%202%5D%3E">Distribution<[T; 2]></a></li><li><a href="#impl-Distribution%3C%5BT%3B%2020%5D%3E">Distribution<[T; 20]></a></li><li><a href="#impl-Distribution%3C%5BT%3B%2021%5D%3E">Distribution<[T; 21]></a></li><li><a href="#impl-Distribution%3C%5BT%3B%2022%5D%3E">Distribution<[T; 22]></a></li><li><a href="#impl-Distribution%3C%5BT%3B%2023%5D%3E">Distribution<[T; 23]></a></li><li><a href="#impl-Distribution%3C%5BT%3B%2024%5D%3E">Distribution<[T; 24]></a></li><li><a href="#impl-Distribution%3C%5BT%3B%2025%5D%3E">Distribution<[T; 25]></a></li><li><a href="#impl-Distribution%3C%5BT%3B%2026%5D%3E">Distribution<[T; 26]></a></li><li><a href="#impl-Distribution%3C%5BT%3B%2027%5D%3E">Distribution<[T; 27]></a></li><li><a href="#impl-Distribution%3C%5BT%3B%2028%5D%3E">Distribution<[T; 28]></a></li><li><a href="#impl-Distribution%3C%5BT%3B%2029%5D%3E">Distribution<[T; 29]></a></li><li><a href="#impl-Distribution%3C%5BT%3B%203%5D%3E">Distribution<[T; 3]></a></li><li><a href="#impl-Distribution%3C%5BT%3B%2030%5D%3E">Distribution<[T; 30]></a></li><li><a href="#impl-Distribution%3C%5BT%3B%2031%5D%3E">Distribution<[T; 31]></a></li><li><a href="#impl-Distribution%3C%5BT%3B%2032%5D%3E">Distribution<[T; 32]></a></li><li><a href="#impl-Distribution%3C%5BT%3B%204%5D%3E">Distribution<[T; 4]></a></li><li><a href="#impl-Distribution%3C%5BT%3B%205%5D%3E">Distribution<[T; 5]></a></li><li><a href="#impl-Distribution%3C%5BT%3B%206%5D%3E">Distribution<[T; 6]></a></li><li><a href="#impl-Distribution%3C%5BT%3B%207%5D%3E">Distribution<[T; 7]></a></li><li><a href="#impl-Distribution%3C%5BT%3B%208%5D%3E">Distribution<[T; 8]></a></li><li><a href="#impl-Distribution%3C%5BT%3B%209%5D%3E">Distribution<[T; 9]></a></li><li><a href="#impl-Distribution%3C()%3E">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">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">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">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">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">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">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">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">Distribution<(A, B, C, D, E)></a></li><li><a href="#impl-Distribution%3C(A%2C%20B%2C%20C%2C%20D)%3E">Distribution<(A, B, C, D)></a></li><li><a href="#impl-Distribution%3C(A%2C%20B%2C%20C)%3E">Distribution<(A, B, C)></a></li><li><a href="#impl-Distribution%3C(A%2C%20B)%3E">Distribution<(A, B)></a></li><li><a href="#impl-Distribution%3C(A%2C)%3E">Distribution<(A,)></a></li><li><a href="#impl-Distribution%3CNonZeroU128%3E">Distribution<NonZeroU128></a></li><li><a href="#impl-Distribution%3CNonZeroU16%3E">Distribution<NonZeroU16></a></li><li><a href="#impl-Distribution%3CNonZeroU32%3E">Distribution<NonZeroU32></a></li><li><a href="#impl-Distribution%3CNonZeroU64%3E">Distribution<NonZeroU64></a></li><li><a href="#impl-Distribution%3CNonZeroU8%3E">Distribution<NonZeroU8></a></li><li><a href="#impl-Distribution%3CNonZeroUsize%3E">Distribution<NonZeroUsize></a></li><li><a href="#impl-Distribution%3COption%3CT%3E%3E">Distribution<Option<T>></a></li><li><a href="#impl-Distribution%3CWrapping%3CT%3E%3E">Distribution<Wrapping<T>></a></li><li><a href="#impl-Distribution%3Cbool%3E">Distribution<bool></a></li><li><a href="#impl-Distribution%3Cchar%3E">Distribution<char></a></li><li><a href="#impl-Distribution%3Cf32%3E">Distribution<f32></a></li><li><a href="#impl-Distribution%3Cf64%3E">Distribution<f64></a></li><li><a href="#impl-Distribution%3Ci128%3E">Distribution<i128></a></li><li><a href="#impl-Distribution%3Ci16%3E">Distribution<i16></a></li><li><a href="#impl-Distribution%3Ci32%3E">Distribution<i32></a></li><li><a href="#impl-Distribution%3Ci64%3E">Distribution<i64></a></li><li><a href="#impl-Distribution%3Ci8%3E">Distribution<i8></a></li><li><a href="#impl-Distribution%3Cisize%3E">Distribution<isize></a></li><li><a href="#impl-Distribution%3Cu128%3E">Distribution<u128></a></li><li><a href="#impl-Distribution%3Cu16%3E">Distribution<u16></a></li><li><a href="#impl-Distribution%3Cu32%3E">Distribution<u32></a></li><li><a href="#impl-Distribution%3Cu64%3E">Distribution<u64></a></li><li><a href="#impl-Distribution%3Cu8%3E">Distribution<u8></a></li><li><a href="#impl-Distribution%3Cusize%3E">Distribution<usize></a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul><li><a href="#impl-RefUnwindSafe">RefUnwindSafe</a></li><li><a href="#impl-Send">Send</a></li><li><a href="#impl-Sync">Sync</a></li><li><a href="#impl-Unpin">Unpin</a></li><li><a href="#impl-UnwindSafe">UnwindSafe</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#blanket-implementations">Blanket Implementations</a></h3><ul><li><a href="#impl-Any">Any</a></li><li><a href="#impl-Borrow%3CT%3E">Borrow<T></a></li><li><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a></li><li><a href="#impl-From%3CT%3E">From<T></a></li><li><a href="#impl-Into%3CU%3E">Into<U></a></li><li><a href="#impl-ToOwned">ToOwned</a></li><li><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a></li><li><a href="#impl-TryInto%3CU%3E">TryInto<U></a></li><li><a href="#impl-VZip%3CV%3E">VZip<V></a></li></ul></div></section><h2 class="location"><a href="index.html">In rand::distributions</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../rand/index.html">
<img src="https://www.rust-lang.org/logos/rust-logo-128x128-blk.png" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><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"><button type="button">?</button></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>
</div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
<h1 class="fqn"><span class="in-band">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></span></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="docblock 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> <span class="ident">rand::Rng</span>;
<span class="kw">use</span> <span class="ident">rand::distributions</span>::{<span class="ident">Distribution</span>, <span class="ident">Standard</span>};
<span class="kw">struct</span> <span class="ident">MyF32</span> {
<span class="ident">x</span>: <span class="ident">f32</span>,
}
<span class="kw">impl</span> <span class="ident">Distribution</span><span class="op"><</span><span class="ident">MyF32</span><span class="op">></span> <span class="kw">for</span> <span class="ident">Standard</span> {
<span class="kw">fn</span> <span class="ident">sample</span><span class="op"><</span><span class="ident">R</span>: <span class="ident">Rng</span> <span class="op">+</span> <span class="question-mark">?</span><span class="ident">Sized</span><span class="op">></span>(<span class="kw-2">&</span><span class="self">self</span>, <span class="ident">rng</span>: <span class="kw-2">&mut</span> <span class="ident">R</span>) -> <span class="ident">MyF32</span> {
<span class="ident">MyF32</span> { <span class="ident">x</span>: <span class="ident">rng</span>.<span class="ident">gen</span>() }
}
}</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> <span class="ident">rand::prelude</span>::<span class="kw-2">*</span>;
<span class="kw">use</span> <span class="ident">rand::distributions::Standard</span>;
<span class="kw">let</span> <span class="ident">val</span>: <span class="ident">f32</span> <span class="op">=</span> <span class="ident">StdRng::from_entropy</span>().<span class="ident">sample</span>(<span class="ident">Standard</span>);
<span class="macro">println!</span>(<span class="string">"f32 from [0, 1): {}"</span>, <span class="ident">val</span>);</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" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/mod.rs.html#216">source</a></span><a href="#impl-Clone" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/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"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/mod.rs.html#216">source</a></span><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/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'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
</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/nightly/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/nightly/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/nightly/std/primitive.reference.html">&</a>Self)</h4></section></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Debug" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/mod.rs.html#216">source</a></span><a href="#impl-Debug" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/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"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/mod.rs.html#216">source</a></span><a href="#method.fmt" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a><'_>) -> <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></h4></section></summary><div class='docblock'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-DistString" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#98-106">source</a></span><a href="#impl-DistString" class="anchor"></a><h3 class="code-header in-band">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"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#99-105">source</a></span><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/nightly/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/nightly/std/primitive.reference.html">&mut </a>R, <br> s: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, <br> len: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a><br>)</h4></section></summary><div class='docblock'><p>Append <code>len</code> random chars to <code>string</code></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_string" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#203-207">source</a></span><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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R, len: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -> <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></h4></section></summary><div class='docblock'><p>Generate a <code>String</code> of <code>len</code> random chars</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C%5BT%3B%200%5D%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#231">source</a></span><a href="#impl-Distribution%3C%5BT%3B%200%5D%3E" class="anchor"></a><h3 class="code-header in-band">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/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 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"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#231">source</a></span><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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 0]</a></h4></section></summary><div class='docblock'><p>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-35" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a></span><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/nightly/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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-35" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a></span><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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C%5BT%3B%201%5D%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#231">source</a></span><a href="#impl-Distribution%3C%5BT%3B%201%5D%3E" class="anchor"></a><h3 class="code-header in-band">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/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 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"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#231">source</a></span><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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 1]</a></h4></section></summary><div class='docblock'><p>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-36" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a></span><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/nightly/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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-36" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a></span><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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C%5BT%3B%2010%5D%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#231">source</a></span><a href="#impl-Distribution%3C%5BT%3B%2010%5D%3E" class="anchor"></a><h3 class="code-header in-band">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/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 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"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#231">source</a></span><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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 10]</a></h4></section></summary><div class='docblock'><p>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-45" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a></span><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/nightly/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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-45" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a></span><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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C%5BT%3B%2011%5D%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#231">source</a></span><a href="#impl-Distribution%3C%5BT%3B%2011%5D%3E" class="anchor"></a><h3 class="code-header in-band">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/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 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"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#231">source</a></span><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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 11]</a></h4></section></summary><div class='docblock'><p>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-46" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a></span><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/nightly/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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-46" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a></span><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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C%5BT%3B%2012%5D%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#231">source</a></span><a href="#impl-Distribution%3C%5BT%3B%2012%5D%3E" class="anchor"></a><h3 class="code-header in-band">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/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 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"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#231">source</a></span><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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 12]</a></h4></section></summary><div class='docblock'><p>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-47" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a></span><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/nightly/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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-47" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a></span><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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C%5BT%3B%2013%5D%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#231">source</a></span><a href="#impl-Distribution%3C%5BT%3B%2013%5D%3E" class="anchor"></a><h3 class="code-header in-band">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/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 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"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#231">source</a></span><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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 13]</a></h4></section></summary><div class='docblock'><p>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-48" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a></span><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/nightly/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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-48" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a></span><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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C%5BT%3B%2014%5D%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#231">source</a></span><a href="#impl-Distribution%3C%5BT%3B%2014%5D%3E" class="anchor"></a><h3 class="code-header in-band">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/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 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"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#231">source</a></span><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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 14]</a></h4></section></summary><div class='docblock'><p>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-49" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a></span><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/nightly/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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-49" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a></span><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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C%5BT%3B%2015%5D%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#231">source</a></span><a href="#impl-Distribution%3C%5BT%3B%2015%5D%3E" class="anchor"></a><h3 class="code-header in-band">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/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 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"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#231">source</a></span><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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 15]</a></h4></section></summary><div class='docblock'><p>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-50" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a></span><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/nightly/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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-50" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a></span><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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C%5BT%3B%2016%5D%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#231">source</a></span><a href="#impl-Distribution%3C%5BT%3B%2016%5D%3E" class="anchor"></a><h3 class="code-header in-band">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/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 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"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#231">source</a></span><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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 16]</a></h4></section></summary><div class='docblock'><p>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-51" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a></span><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/nightly/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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-51" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a></span><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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C%5BT%3B%2017%5D%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#231">source</a></span><a href="#impl-Distribution%3C%5BT%3B%2017%5D%3E" class="anchor"></a><h3 class="code-header in-band">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/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 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"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#231">source</a></span><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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 17]</a></h4></section></summary><div class='docblock'><p>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-52" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a></span><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/nightly/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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-52" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a></span><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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C%5BT%3B%2018%5D%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#231">source</a></span><a href="#impl-Distribution%3C%5BT%3B%2018%5D%3E" class="anchor"></a><h3 class="code-header in-band">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/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 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"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#231">source</a></span><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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 18]</a></h4></section></summary><div class='docblock'><p>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-53" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a></span><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/nightly/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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-53" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a></span><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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C%5BT%3B%2019%5D%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#231">source</a></span><a href="#impl-Distribution%3C%5BT%3B%2019%5D%3E" class="anchor"></a><h3 class="code-header in-band">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/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 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"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#231">source</a></span><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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 19]</a></h4></section></summary><div class='docblock'><p>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-54" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a></span><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/nightly/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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-54" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a></span><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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C%5BT%3B%202%5D%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#231">source</a></span><a href="#impl-Distribution%3C%5BT%3B%202%5D%3E" class="anchor"></a><h3 class="code-header in-band">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/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 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"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#231">source</a></span><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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 2]</a></h4></section></summary><div class='docblock'><p>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-37" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a></span><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/nightly/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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-37" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a></span><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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C%5BT%3B%2020%5D%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#231">source</a></span><a href="#impl-Distribution%3C%5BT%3B%2020%5D%3E" class="anchor"></a><h3 class="code-header in-band">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/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 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"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#231">source</a></span><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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 20]</a></h4></section></summary><div class='docblock'><p>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-55" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a></span><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/nightly/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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-55" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a></span><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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C%5BT%3B%2021%5D%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#231">source</a></span><a href="#impl-Distribution%3C%5BT%3B%2021%5D%3E" class="anchor"></a><h3 class="code-header in-band">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/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 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"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#231">source</a></span><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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 21]</a></h4></section></summary><div class='docblock'><p>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-56" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a></span><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/nightly/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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-56" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a></span><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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C%5BT%3B%2022%5D%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#231">source</a></span><a href="#impl-Distribution%3C%5BT%3B%2022%5D%3E" class="anchor"></a><h3 class="code-header in-band">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/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 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"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#231">source</a></span><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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 22]</a></h4></section></summary><div class='docblock'><p>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-57" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a></span><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/nightly/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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-57" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a></span><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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C%5BT%3B%2023%5D%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#231">source</a></span><a href="#impl-Distribution%3C%5BT%3B%2023%5D%3E" class="anchor"></a><h3 class="code-header in-band">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/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 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"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#231">source</a></span><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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 23]</a></h4></section></summary><div class='docblock'><p>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-58" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a></span><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/nightly/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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-58" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a></span><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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C%5BT%3B%2024%5D%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#231">source</a></span><a href="#impl-Distribution%3C%5BT%3B%2024%5D%3E" class="anchor"></a><h3 class="code-header in-band">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/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 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"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#231">source</a></span><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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 24]</a></h4></section></summary><div class='docblock'><p>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-59" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a></span><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/nightly/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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-59" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a></span><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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C%5BT%3B%2025%5D%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#231">source</a></span><a href="#impl-Distribution%3C%5BT%3B%2025%5D%3E" class="anchor"></a><h3 class="code-header in-band">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/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 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"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#231">source</a></span><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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 25]</a></h4></section></summary><div class='docblock'><p>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-60" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a></span><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/nightly/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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-60" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a></span><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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C%5BT%3B%2026%5D%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#231">source</a></span><a href="#impl-Distribution%3C%5BT%3B%2026%5D%3E" class="anchor"></a><h3 class="code-header in-band">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/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 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"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#231">source</a></span><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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 26]</a></h4></section></summary><div class='docblock'><p>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-61" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a></span><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/nightly/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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-61" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a></span><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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C%5BT%3B%2027%5D%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#231">source</a></span><a href="#impl-Distribution%3C%5BT%3B%2027%5D%3E" class="anchor"></a><h3 class="code-header in-band">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/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 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"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#231">source</a></span><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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 27]</a></h4></section></summary><div class='docblock'><p>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-62" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a></span><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/nightly/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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-62" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a></span><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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C%5BT%3B%2028%5D%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#231">source</a></span><a href="#impl-Distribution%3C%5BT%3B%2028%5D%3E" class="anchor"></a><h3 class="code-header in-band">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/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 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"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#231">source</a></span><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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 28]</a></h4></section></summary><div class='docblock'><p>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-63" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a></span><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/nightly/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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-63" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a></span><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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C%5BT%3B%2029%5D%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#231">source</a></span><a href="#impl-Distribution%3C%5BT%3B%2029%5D%3E" class="anchor"></a><h3 class="code-header in-band">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/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 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"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#231">source</a></span><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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 29]</a></h4></section></summary><div class='docblock'><p>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-64" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a></span><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/nightly/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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-64" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a></span><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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C%5BT%3B%203%5D%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#231">source</a></span><a href="#impl-Distribution%3C%5BT%3B%203%5D%3E" class="anchor"></a><h3 class="code-header in-band">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/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 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"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#231">source</a></span><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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 3]</a></h4></section></summary><div class='docblock'><p>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-38" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a></span><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/nightly/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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-38" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a></span><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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C%5BT%3B%2030%5D%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#231">source</a></span><a href="#impl-Distribution%3C%5BT%3B%2030%5D%3E" class="anchor"></a><h3 class="code-header in-band">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/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 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"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#231">source</a></span><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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 30]</a></h4></section></summary><div class='docblock'><p>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-65" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a></span><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/nightly/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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-65" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a></span><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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C%5BT%3B%2031%5D%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#231">source</a></span><a href="#impl-Distribution%3C%5BT%3B%2031%5D%3E" class="anchor"></a><h3 class="code-header in-band">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/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 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"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#231">source</a></span><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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 31]</a></h4></section></summary><div class='docblock'><p>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-66" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a></span><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/nightly/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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-66" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a></span><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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C%5BT%3B%2032%5D%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#231">source</a></span><a href="#impl-Distribution%3C%5BT%3B%2032%5D%3E" class="anchor"></a><h3 class="code-header in-band">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/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 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"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#231">source</a></span><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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 32]</a></h4></section></summary><div class='docblock'><p>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-67" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a></span><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/nightly/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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-67" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a></span><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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C%5BT%3B%204%5D%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#231">source</a></span><a href="#impl-Distribution%3C%5BT%3B%204%5D%3E" class="anchor"></a><h3 class="code-header in-band">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/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 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"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#231">source</a></span><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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 4]</a></h4></section></summary><div class='docblock'><p>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-39" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a></span><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/nightly/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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-39" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a></span><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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C%5BT%3B%205%5D%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#231">source</a></span><a href="#impl-Distribution%3C%5BT%3B%205%5D%3E" class="anchor"></a><h3 class="code-header in-band">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/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 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"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#231">source</a></span><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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 5]</a></h4></section></summary><div class='docblock'><p>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-40" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a></span><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/nightly/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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-40" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a></span><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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C%5BT%3B%206%5D%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#231">source</a></span><a href="#impl-Distribution%3C%5BT%3B%206%5D%3E" class="anchor"></a><h3 class="code-header in-band">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/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 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"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#231">source</a></span><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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 6]</a></h4></section></summary><div class='docblock'><p>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-41" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a></span><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/nightly/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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-41" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a></span><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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C%5BT%3B%207%5D%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#231">source</a></span><a href="#impl-Distribution%3C%5BT%3B%207%5D%3E" class="anchor"></a><h3 class="code-header in-band">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/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 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"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#231">source</a></span><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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 7]</a></h4></section></summary><div class='docblock'><p>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-42" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a></span><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/nightly/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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-42" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a></span><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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C%5BT%3B%208%5D%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#231">source</a></span><a href="#impl-Distribution%3C%5BT%3B%208%5D%3E" class="anchor"></a><h3 class="code-header in-band">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/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 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"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#231">source</a></span><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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 8]</a></h4></section></summary><div class='docblock'><p>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-43" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a></span><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/nightly/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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-43" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a></span><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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C%5BT%3B%209%5D%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#231">source</a></span><a href="#impl-Distribution%3C%5BT%3B%209%5D%3E" class="anchor"></a><h3 class="code-header in-band">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/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 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"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#231">source</a></span><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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 9]</a></h4></section></summary><div class='docblock'><p>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-44" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a></span><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/nightly/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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-44" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a></span><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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C()%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#172-178">source</a></span><a href="#impl-Distribution%3C()%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/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"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#175-177">source</a></span><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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R)</h4></section></summary><div class='docblock'><p>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-22" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a></span><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/nightly/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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-22" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a></span><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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</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" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#190">source</a></span><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" class="anchor"></a><h3 class="code-header in-band">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/nightly/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"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#190">source</a></span><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/nightly/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/nightly/std/primitive.reference.html">&mut </a>R<br>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(A, B, C, D, E, F, G, H, I, J, K, L)</a></h4></section></summary><div class='docblock'><p>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-34" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a></span><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/nightly/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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-34" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a></span><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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</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" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#189">source</a></span><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" class="anchor"></a><h3 class="code-header in-band">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/nightly/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"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#189">source</a></span><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/nightly/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/nightly/std/primitive.reference.html">&mut </a>R<br>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(A, B, C, D, E, F, G, H, I, J, K)</a></h4></section></summary><div class='docblock'><p>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-33" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a></span><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/nightly/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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-33" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a></span><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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</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" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#188">source</a></span><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" class="anchor"></a><h3 class="code-header in-band">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/nightly/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"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#188">source</a></span><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/nightly/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/nightly/std/primitive.reference.html">&mut </a>R<br>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(A, B, C, D, E, F, G, H, I, J)</a></h4></section></summary><div class='docblock'><p>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-32" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a></span><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/nightly/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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-32" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a></span><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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</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" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#187">source</a></span><a href="#impl-Distribution%3C(A%2C%20B%2C%20C%2C%20D%2C%20E%2C%20F%2C%20G%2C%20H%2C%20I)%3E" class="anchor"></a><h3 class="code-header in-band">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/nightly/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"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#187">source</a></span><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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(A, B, C, D, E, F, G, H, I)</a></h4></section></summary><div class='docblock'><p>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-31" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a></span><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/nightly/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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-31" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a></span><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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</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" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#186">source</a></span><a href="#impl-Distribution%3C(A%2C%20B%2C%20C%2C%20D%2C%20E%2C%20F%2C%20G%2C%20H)%3E" class="anchor"></a><h3 class="code-header in-band">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/nightly/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"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#186">source</a></span><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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(A, B, C, D, E, F, G, H)</a></h4></section></summary><div class='docblock'><p>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-30" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a></span><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/nightly/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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-30" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a></span><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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</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" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#185">source</a></span><a href="#impl-Distribution%3C(A%2C%20B%2C%20C%2C%20D%2C%20E%2C%20F%2C%20G)%3E" class="anchor"></a><h3 class="code-header in-band">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/nightly/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"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#185">source</a></span><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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(A, B, C, D, E, F, G)</a></h4></section></summary><div class='docblock'><p>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-29" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a></span><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/nightly/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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-29" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a></span><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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</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" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#184">source</a></span><a href="#impl-Distribution%3C(A%2C%20B%2C%20C%2C%20D%2C%20E%2C%20F)%3E" class="anchor"></a><h3 class="code-header in-band">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/nightly/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"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#184">source</a></span><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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(A, B, C, D, E, F)</a></h4></section></summary><div class='docblock'><p>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-28" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a></span><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/nightly/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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-28" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a></span><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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</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" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#183">source</a></span><a href="#impl-Distribution%3C(A%2C%20B%2C%20C%2C%20D%2C%20E)%3E" class="anchor"></a><h3 class="code-header in-band">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/nightly/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"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#183">source</a></span><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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(A, B, C, D, E)</a></h4></section></summary><div class='docblock'><p>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-27" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a></span><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/nightly/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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-27" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a></span><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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</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" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#182">source</a></span><a href="#impl-Distribution%3C(A%2C%20B%2C%20C%2C%20D)%3E" class="anchor"></a><h3 class="code-header in-band">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/nightly/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"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#182">source</a></span><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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(A, B, C, D)</a></h4></section></summary><div class='docblock'><p>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-26" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a></span><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/nightly/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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-26" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a></span><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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C(A%2C%20B%2C%20C)%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#181">source</a></span><a href="#impl-Distribution%3C(A%2C%20B%2C%20C)%3E" class="anchor"></a><h3 class="code-header in-band">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/nightly/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"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#181">source</a></span><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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(A, B, C)</a></h4></section></summary><div class='docblock'><p>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-25" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a></span><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/nightly/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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-25" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a></span><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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C(A%2C%20B)%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#180">source</a></span><a href="#impl-Distribution%3C(A%2C%20B)%3E" class="anchor"></a><h3 class="code-header in-band">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/nightly/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"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#180">source</a></span><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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(A, B)</a></h4></section></summary><div class='docblock'><p>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-24" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a></span><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/nightly/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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-24" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a></span><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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3C(A%2C)%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#179">source</a></span><a href="#impl-Distribution%3C(A%2C)%3E" class="anchor"></a><h3 class="code-header in-band">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/nightly/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"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#179">source</a></span><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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, _rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(A,)</a></h4></section></summary><div class='docblock'><p>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-23" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a></span><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/nightly/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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-23" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a></span><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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3CNonZeroU128%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/integer.rs.html#109">source</a></span><a href="#impl-Distribution%3CNonZeroU128%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="struct" href="https://doc.rust-lang.org/nightly/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"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/integer.rs.html#109">source</a></span><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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/num/nonzero/struct.NonZeroU128.html" title="struct core::num::nonzero::NonZeroU128">NonZeroU128</a></h4></section></summary><div class='docblock'><p>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-18" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a></span><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/nightly/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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-18" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a></span><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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3CNonZeroU16%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/integer.rs.html#106">source</a></span><a href="#impl-Distribution%3CNonZeroU16%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="struct" href="https://doc.rust-lang.org/nightly/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"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/integer.rs.html#106">source</a></span><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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/num/nonzero/struct.NonZeroU16.html" title="struct core::num::nonzero::NonZeroU16">NonZeroU16</a></h4></section></summary><div class='docblock'><p>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-15" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a></span><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/nightly/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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-15" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a></span><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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3CNonZeroU32%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/integer.rs.html#107">source</a></span><a href="#impl-Distribution%3CNonZeroU32%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="struct" href="https://doc.rust-lang.org/nightly/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"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/integer.rs.html#107">source</a></span><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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/num/nonzero/struct.NonZeroU32.html" title="struct core::num::nonzero::NonZeroU32">NonZeroU32</a></h4></section></summary><div class='docblock'><p>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-16" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a></span><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/nightly/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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-16" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a></span><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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3CNonZeroU64%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/integer.rs.html#108">source</a></span><a href="#impl-Distribution%3CNonZeroU64%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="struct" href="https://doc.rust-lang.org/nightly/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"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/integer.rs.html#108">source</a></span><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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/num/nonzero/struct.NonZeroU64.html" title="struct core::num::nonzero::NonZeroU64">NonZeroU64</a></h4></section></summary><div class='docblock'><p>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-17" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a></span><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/nightly/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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-17" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a></span><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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3CNonZeroU8%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/integer.rs.html#105">source</a></span><a href="#impl-Distribution%3CNonZeroU8%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="struct" href="https://doc.rust-lang.org/nightly/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"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/integer.rs.html#105">source</a></span><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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/num/nonzero/struct.NonZeroU8.html" title="struct core::num::nonzero::NonZeroU8">NonZeroU8</a></h4></section></summary><div class='docblock'><p>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-14" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a></span><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/nightly/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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-14" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a></span><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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3CNonZeroUsize%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/integer.rs.html#110">source</a></span><a href="#impl-Distribution%3CNonZeroUsize%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="struct" href="https://doc.rust-lang.org/nightly/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"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/integer.rs.html#110">source</a></span><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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/num/nonzero/struct.NonZeroUsize.html" title="struct core::num::nonzero::NonZeroUsize">NonZeroUsize</a></h4></section></summary><div class='docblock'><p>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-19" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a></span><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/nightly/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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-19" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a></span><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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3COption%3CT%3E%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#233-245">source</a></span><a href="#impl-Distribution%3COption%3CT%3E%3E" class="anchor"></a><h3 class="code-header in-band">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/nightly/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"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#237-244">source</a></span><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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><T></h4></section></summary><div class='docblock'><p>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-68" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a></span><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/nightly/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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-68" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a></span><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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3CWrapping%3CT%3E%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#247-254">source</a></span><a href="#impl-Distribution%3CWrapping%3CT%3E%3E" class="anchor"></a><h3 class="code-header in-band">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/nightly/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"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#251-253">source</a></span><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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/num/wrapping/struct.Wrapping.html" title="struct core::num::wrapping::Wrapping">Wrapping</a><T></h4></section></summary><div class='docblock'><p>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-69" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a></span><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/nightly/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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-69" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a></span><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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3Cbool%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#137-146">source</a></span><a href="#impl-Distribution%3Cbool%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/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"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#139-145">source</a></span><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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'><p>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-21" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a></span><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/nightly/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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-21" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a></span><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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3Cchar%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#74-93">source</a></span><a href="#impl-Distribution%3Cchar%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/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"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/other.rs.html#76-92">source</a></span><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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.char.html">char</a></h4></section></summary><div class='docblock'><p>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-20" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a></span><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/nightly/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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-20" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a></span><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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3Cf32%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/float.rs.html#153">source</a></span><a href="#impl-Distribution%3Cf32%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/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"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/float.rs.html#153">source</a></span><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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a></h4></section></summary><div class='docblock'><p>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a></span><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/nightly/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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a></span><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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3Cf64%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/float.rs.html#154">source</a></span><a href="#impl-Distribution%3Cf64%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/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"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/float.rs.html#154">source</a></span><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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a></h4></section></summary><div class='docblock'><p>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-1" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a></span><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/nightly/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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-1" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a></span><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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3Ci128%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/integer.rs.html#88">source</a></span><a href="#impl-Distribution%3Ci128%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/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"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/integer.rs.html#88">source</a></span><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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i128.html">i128</a></h4></section></summary><div class='docblock'><p>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-12" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a></span><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/nightly/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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-12" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a></span><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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3Ci16%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/integer.rs.html#85">source</a></span><a href="#impl-Distribution%3Ci16%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/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"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/integer.rs.html#85">source</a></span><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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i16.html">i16</a></h4></section></summary><div class='docblock'><p>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-9" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a></span><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/nightly/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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-9" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a></span><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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3Ci32%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/integer.rs.html#86">source</a></span><a href="#impl-Distribution%3Ci32%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/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"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/integer.rs.html#86">source</a></span><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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a></h4></section></summary><div class='docblock'><p>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-10" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a></span><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/nightly/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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-10" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a></span><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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3Ci64%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/integer.rs.html#87">source</a></span><a href="#impl-Distribution%3Ci64%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/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"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/integer.rs.html#87">source</a></span><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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a></h4></section></summary><div class='docblock'><p>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-11" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a></span><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/nightly/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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-11" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a></span><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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3Ci8%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/integer.rs.html#84">source</a></span><a href="#impl-Distribution%3Ci8%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/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"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/integer.rs.html#84">source</a></span><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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i8.html">i8</a></h4></section></summary><div class='docblock'><p>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-8" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a></span><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/nightly/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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-8" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a></span><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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3Cisize%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/integer.rs.html#89">source</a></span><a href="#impl-Distribution%3Cisize%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/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"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/integer.rs.html#89">source</a></span><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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.isize.html">isize</a></h4></section></summary><div class='docblock'><p>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-13" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a></span><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/nightly/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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-13" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a></span><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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3Cu128%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/integer.rs.html#49-57">source</a></span><a href="#impl-Distribution%3Cu128%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/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"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/integer.rs.html#51-56">source</a></span><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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u128.html">u128</a></h4></section></summary><div class='docblock'><p>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-6" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a></span><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/nightly/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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-6" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a></span><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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3Cu16%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/integer.rs.html#28-33">source</a></span><a href="#impl-Distribution%3Cu16%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/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"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/integer.rs.html#30-32">source</a></span><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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a></h4></section></summary><div class='docblock'><p>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-3" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a></span><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/nightly/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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-3" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a></span><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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3Cu32%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/integer.rs.html#35-40">source</a></span><a href="#impl-Distribution%3Cu32%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/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"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/integer.rs.html#37-39">source</a></span><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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></h4></section></summary><div class='docblock'><p>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-4" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a></span><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/nightly/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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-4" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a></span><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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3Cu64%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/integer.rs.html#42-47">source</a></span><a href="#impl-Distribution%3Cu64%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/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"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/integer.rs.html#44-46">source</a></span><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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a></h4></section></summary><div class='docblock'><p>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-5" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a></span><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/nightly/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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-5" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a></span><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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3Cu8%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/integer.rs.html#21-26">source</a></span><a href="#impl-Distribution%3Cu8%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/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"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/integer.rs.html#23-25">source</a></span><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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a></h4></section></summary><div class='docblock'><p>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-2" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a></span><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/nightly/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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-2" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a></span><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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Distribution%3Cusize%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/integer.rs.html#59-71">source</a></span><a href="#impl-Distribution%3Cusize%3E" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.Distribution.html" title="trait rand::distributions::Distribution">Distribution</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/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"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/integer.rs.html#68-70">source</a></span><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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>>(&self, rng: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>R) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></h4></section></summary><div class='docblock'><p>Generate a random value of <code>T</code>, using <code>rng</code> as the source of randomness.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sample_iter-7" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#73-83">source</a></span><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/nightly/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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.map-7" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/distribution.rs.html#102-112">source</a></span><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/nightly/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/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h4></section></summary><div class='docblock'><p>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></p>
</div></details></div></details><section id="impl-Copy" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/rand/distributions/mod.rs.html#216">source</a></span><a href="#impl-Copy" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/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" class="impl has-srclink"><a href="#impl-RefUnwindSafe" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/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" class="impl has-srclink"><a href="#impl-Send" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/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" class="impl has-srclink"><a href="#impl-Sync" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/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" class="impl has-srclink"><a href="#impl-Unpin" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/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" class="impl has-srclink"><a href="#impl-UnwindSafe" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/nightly/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" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#203">source</a></span><a href="#impl-Any" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/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/nightly/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"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#204">source</a></span><a href="#method.type_id" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4></section></summary><div class='docblock'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Borrow%3CT%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#209">source</a></span><a href="#impl-Borrow%3CT%3E" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/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/nightly/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/nightly/src/core/borrow.rs.html#211">source</a></span><a href="#method.borrow" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow" class="fnname">borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T</h4></section></summary><div class='docblock'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-BorrowMut%3CT%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#218">source</a></span><a href="#impl-BorrowMut%3CT%3E" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/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/nightly/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/nightly/src/core/borrow.rs.html#219">source</a></span><a href="#method.borrow_mut" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fnname">borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T</h4></section></summary><div class='docblock'><p>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-From%3CT%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#557">source</a></span><a href="#impl-From%3CT%3E" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/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/nightly/src/core/convert/mod.rs.html#559">source</a></span><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/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" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#541">source</a></span><a href="#impl-Into%3CU%3E" class="anchor"></a><h3 class="code-header in-band">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/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/nightly/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/nightly/src/core/convert/mod.rs.html#549">source</a></span><a href="#method.into" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/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/nightly/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" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#83">source</a></span><a href="#impl-ToOwned" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/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/nightly/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/nightly/alloc/borrow/trait.ToOwned.html#associatedtype.Owned" class="associatedtype">Owned</a> = T</h4></section></summary><div class='docblock'><p>The resulting type after obtaining ownership.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_owned" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#88">source</a></span><a href="#method.to_owned" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned" class="fnname">to_owned</a>(&self) -> T</h4></section></summary><div class='docblock'><p>Creates owned data from borrowed data, usually by cloning. <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_into" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#92">source</a></span><a href="#method.clone_into" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into" class="fnname">clone_into</a>(&self, target: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T)</h4></section></summary><div class='docblock'><p>Uses borrowed data to replace owned data, usually by cloning. <a href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-TryFrom%3CU%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#598">source</a></span><a href="#impl-TryFrom%3CU%3E" class="anchor"></a><h3 class="code-header in-band">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/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/nightly/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-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/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></h4></section></summary><div class='docblock'><p>The type returned in the event of a conversion error.</p>
</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/nightly/src/core/convert/mod.rs.html#604">source</a></span><a href="#method.try_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from" class="fnname">try_from</a>(value: U) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><div class='docblock'><p>Performs the conversion.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-TryInto%3CU%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#583">source</a></span><a href="#impl-TryInto%3CU%3E" class="anchor"></a><h3 class="code-header in-band">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/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/nightly/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" 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/nightly/core/convert/trait.TryInto.html#associatedtype.Error" class="associatedtype">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></h4></section></summary><div class='docblock'><p>The type returned in the event of a conversion error.</p>
</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/nightly/src/core/convert/mod.rs.html#589">source</a></span><a href="#method.try_into" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into" class="fnname">try_into</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><div class='docblock'><p>Performs the conversion.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-VZip%3CV%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/ppv_lite86/types.rs.html#221">source</a></span><a href="#impl-VZip%3CV%3E" class="anchor"></a><h3 class="code-header in-band">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"><span class="rightside"><a class="srclink" href="../../src/ppv_lite86/types.rs.html#226">source</a></span><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.64.0-nightly (495b21669 2022-07-03)" ></div>
</body></html>