1 <!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="Helper trait for creating objects using the correct implementation of `UniformSampler` for the sampling type."><title>SampleUniform in bdk_chain::bitcoin::secp256k1::rand::distributions::uniform - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../../../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../../../../../static.files/rustdoc-dd39b87e5fcfba68.css"><meta name="rustdoc-vars" data-root-path="../../../../../../" data-static-root-path="../../../../../../static.files/" data-current-crate="bdk_chain" data-themes="" data-resource-suffix="" data-rustdoc-version="1.80.0-nightly (78a775127 2024-05-11)" data-channel="nightly" data-search-js="search-d52510db62a78183.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../../../../../../static.files/storage-118b08c4c78b968e.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../../../../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../../../../../../static.files/noscript-df360f571f6edeae.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../../../../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc trait"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button><a class="logo-container" href="../../../../../../bdk_chain/index.html"><img src="https://github.com/bitcoindevkit/bdk/raw/master/static/bdk.png" alt=""></a></nav><nav class="sidebar"><div class="sidebar-crate"><a class="logo-container" href="../../../../../../bdk_chain/index.html"><img src="https://github.com/bitcoindevkit/bdk/raw/master/static/bdk.png" alt="logo"></a><h2><a href="../../../../../../bdk_chain/index.html">bdk_chain</a><span class="version">0.20.0</span></h2></div><h2 class="location"><a href="#">SampleUniform</a></h2><div class="sidebar-elems"><section><h3><a href="#required-associated-types">Required Associated Types</a></h3><ul class="block"><li><a href="#associatedtype.Sampler">Sampler</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-SampleUniform-for-Duration">Duration</a></li><li><a href="#impl-SampleUniform-for-char">char</a></li><li><a href="#impl-SampleUniform-for-f32">f32</a></li><li><a href="#impl-SampleUniform-for-f64">f64</a></li><li><a href="#impl-SampleUniform-for-i128">i128</a></li><li><a href="#impl-SampleUniform-for-i16">i16</a></li><li><a href="#impl-SampleUniform-for-i32">i32</a></li><li><a href="#impl-SampleUniform-for-i64">i64</a></li><li><a href="#impl-SampleUniform-for-i8">i8</a></li><li><a href="#impl-SampleUniform-for-isize">isize</a></li><li><a href="#impl-SampleUniform-for-u128">u128</a></li><li><a href="#impl-SampleUniform-for-u16">u16</a></li><li><a href="#impl-SampleUniform-for-u32">u32</a></li><li><a href="#impl-SampleUniform-for-u64">u64</a></li><li><a href="#impl-SampleUniform-for-u8">u8</a></li><li><a href="#impl-SampleUniform-for-usize">usize</a></li></ul><h3><a href="#object-safety">Object Safety</a></h3><h3><a href="#implementors">Implementors</a></h3></section><h2><a href="index.html">In bdk_chain::bitcoin::secp256k1::rand::distributions::uniform</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><h1>Trait <a href="../../../../../index.html">bdk_chain</a>::<wbr><a href="../../../../index.html">bitcoin</a>::<wbr><a href="../../../index.html">secp256k1</a>::<wbr><a href="../../index.html">rand</a>::<wbr><a href="../index.html">distributions</a>::<wbr><a href="index.html">uniform</a>::<wbr><a class="trait" href="#">SampleUniform</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="https://rust-random.github.io/rand/src/rand/distributions/uniform.rs.html#216">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</span>]</button></span></div><pre class="rust item-decl"><code>pub trait SampleUniform: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a> {
2 type <a href="#associatedtype.Sampler" class="associatedtype">Sampler</a>: <a class="trait" href="trait.UniformSampler.html" title="trait bdk_chain::bitcoin::secp256k1::rand::distributions::uniform::UniformSampler">UniformSampler</a><X = Self>;
3 }</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Helper trait for creating objects using the correct implementation of
4 <a href="trait.UniformSampler.html" title="trait bdk_chain::bitcoin::secp256k1::rand::distributions::uniform::UniformSampler"><code>UniformSampler</code></a> for the sampling type.</p>
5 <p>See the <a href="index.html" title="mod bdk_chain::bitcoin::secp256k1::rand::distributions::uniform">module documentation</a> on how to implement <a href="../struct.Uniform.html" title="struct bdk_chain::bitcoin::secp256k1::rand::distributions::Uniform"><code>Uniform</code></a> range
6 sampling for a custom type.</p>
7 </div></details><h2 id="required-associated-types" class="section-header">Required Associated Types<a href="#required-associated-types" class="anchor">§</a></h2><div class="methods"><details class="toggle" open><summary><section id="associatedtype.Sampler" class="method"><a class="src rightside" href="https://rust-random.github.io/rand/src/rand/distributions/uniform.rs.html#218">source</a><h4 class="code-header">type <a href="#associatedtype.Sampler" class="associatedtype">Sampler</a>: <a class="trait" href="trait.UniformSampler.html" title="trait bdk_chain::bitcoin::secp256k1::rand::distributions::uniform::UniformSampler">UniformSampler</a><X = Self></h4></section></summary><div class="docblock"><p>The <code>UniformSampler</code> implementation supporting type <code>X</code>.</p>
8 </div></details></div><h2 id="object-safety" class="section-header">Object Safety<a href="#object-safety" class="anchor">§</a></h2><div class="object-safety-info">This trait is <b>not</b> <a href="https://doc.rust-lang.org/nightly/reference/items/traits.html#object-safety">object safe</a>.</div><h2 id="foreign-impls" class="section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor">§</a></h2><details class="toggle implementors-toggle"><summary><section id="impl-SampleUniform-for-char" class="impl"><a class="src rightside" href="https://rust-random.github.io/rand/src/rand/distributions/uniform.rs.html#717">source</a><a href="#impl-SampleUniform-for-char" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.SampleUniform.html" title="trait bdk_chain::bitcoin::secp256k1::rand::distributions::uniform::SampleUniform">SampleUniform</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.char.html">char</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Sampler-1" class="associatedtype trait-impl"><a href="#associatedtype.Sampler-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Sampler" class="associatedtype">Sampler</a> = <a class="struct" href="struct.UniformChar.html" title="struct bdk_chain::bitcoin::secp256k1::rand::distributions::uniform::UniformChar">UniformChar</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-SampleUniform-for-f32" class="impl"><a class="src rightside" href="https://rust-random.github.io/rand/src/rand/distributions/uniform.rs.html#998">source</a><a href="#impl-SampleUniform-for-f32" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.SampleUniform.html" title="trait bdk_chain::bitcoin::secp256k1::rand::distributions::uniform::SampleUniform">SampleUniform</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Sampler-2" class="associatedtype trait-impl"><a href="#associatedtype.Sampler-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Sampler" class="associatedtype">Sampler</a> = <a class="struct" href="struct.UniformFloat.html" title="struct bdk_chain::bitcoin::secp256k1::rand::distributions::uniform::UniformFloat">UniformFloat</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-SampleUniform-for-f64" class="impl"><a class="src rightside" href="https://rust-random.github.io/rand/src/rand/distributions/uniform.rs.html#999">source</a><a href="#impl-SampleUniform-for-f64" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.SampleUniform.html" title="trait bdk_chain::bitcoin::secp256k1::rand::distributions::uniform::SampleUniform">SampleUniform</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Sampler-3" class="associatedtype trait-impl"><a href="#associatedtype.Sampler-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Sampler" class="associatedtype">Sampler</a> = <a class="struct" href="struct.UniformFloat.html" title="struct bdk_chain::bitcoin::secp256k1::rand::distributions::uniform::UniformFloat">UniformFloat</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-SampleUniform-for-i8" class="impl"><a class="src rightside" href="https://rust-random.github.io/rand/src/rand/distributions/uniform.rs.html#559">source</a><a href="#impl-SampleUniform-for-i8" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.SampleUniform.html" title="trait bdk_chain::bitcoin::secp256k1::rand::distributions::uniform::SampleUniform">SampleUniform</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i8.html">i8</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Sampler-4" class="associatedtype trait-impl"><a href="#associatedtype.Sampler-4" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Sampler" class="associatedtype">Sampler</a> = <a class="struct" href="struct.UniformInt.html" title="struct bdk_chain::bitcoin::secp256k1::rand::distributions::uniform::UniformInt">UniformInt</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i8.html">i8</a>></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-SampleUniform-for-i16" class="impl"><a class="src rightside" href="https://rust-random.github.io/rand/src/rand/distributions/uniform.rs.html#560">source</a><a href="#impl-SampleUniform-for-i16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.SampleUniform.html" title="trait bdk_chain::bitcoin::secp256k1::rand::distributions::uniform::SampleUniform">SampleUniform</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i16.html">i16</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Sampler-5" class="associatedtype trait-impl"><a href="#associatedtype.Sampler-5" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Sampler" class="associatedtype">Sampler</a> = <a class="struct" href="struct.UniformInt.html" title="struct bdk_chain::bitcoin::secp256k1::rand::distributions::uniform::UniformInt">UniformInt</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i16.html">i16</a>></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-SampleUniform-for-i32" class="impl"><a class="src rightside" href="https://rust-random.github.io/rand/src/rand/distributions/uniform.rs.html#561">source</a><a href="#impl-SampleUniform-for-i32" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.SampleUniform.html" title="trait bdk_chain::bitcoin::secp256k1::rand::distributions::uniform::SampleUniform">SampleUniform</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Sampler-6" class="associatedtype trait-impl"><a href="#associatedtype.Sampler-6" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Sampler" class="associatedtype">Sampler</a> = <a class="struct" href="struct.UniformInt.html" title="struct bdk_chain::bitcoin::secp256k1::rand::distributions::uniform::UniformInt">UniformInt</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a>></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-SampleUniform-for-i64" class="impl"><a class="src rightside" href="https://rust-random.github.io/rand/src/rand/distributions/uniform.rs.html#562">source</a><a href="#impl-SampleUniform-for-i64" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.SampleUniform.html" title="trait bdk_chain::bitcoin::secp256k1::rand::distributions::uniform::SampleUniform">SampleUniform</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Sampler-7" class="associatedtype trait-impl"><a href="#associatedtype.Sampler-7" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Sampler" class="associatedtype">Sampler</a> = <a class="struct" href="struct.UniformInt.html" title="struct bdk_chain::bitcoin::secp256k1::rand::distributions::uniform::UniformInt">UniformInt</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a>></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-SampleUniform-for-i128" class="impl"><a class="src rightside" href="https://rust-random.github.io/rand/src/rand/distributions/uniform.rs.html#563">source</a><a href="#impl-SampleUniform-for-i128" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.SampleUniform.html" title="trait bdk_chain::bitcoin::secp256k1::rand::distributions::uniform::SampleUniform">SampleUniform</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i128.html">i128</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Sampler-8" class="associatedtype trait-impl"><a href="#associatedtype.Sampler-8" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Sampler" class="associatedtype">Sampler</a> = <a class="struct" href="struct.UniformInt.html" title="struct bdk_chain::bitcoin::secp256k1::rand::distributions::uniform::UniformInt">UniformInt</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i128.html">i128</a>></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-SampleUniform-for-isize" class="impl"><a class="src rightside" href="https://rust-random.github.io/rand/src/rand/distributions/uniform.rs.html#564">source</a><a href="#impl-SampleUniform-for-isize" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.SampleUniform.html" title="trait bdk_chain::bitcoin::secp256k1::rand::distributions::uniform::SampleUniform">SampleUniform</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.isize.html">isize</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Sampler-9" class="associatedtype trait-impl"><a href="#associatedtype.Sampler-9" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Sampler" class="associatedtype">Sampler</a> = <a class="struct" href="struct.UniformInt.html" title="struct bdk_chain::bitcoin::secp256k1::rand::distributions::uniform::UniformInt">UniformInt</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.isize.html">isize</a>></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-SampleUniform-for-u8" class="impl"><a class="src rightside" href="https://rust-random.github.io/rand/src/rand/distributions/uniform.rs.html#565">source</a><a href="#impl-SampleUniform-for-u8" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.SampleUniform.html" title="trait bdk_chain::bitcoin::secp256k1::rand::distributions::uniform::SampleUniform">SampleUniform</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Sampler-10" class="associatedtype trait-impl"><a href="#associatedtype.Sampler-10" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Sampler" class="associatedtype">Sampler</a> = <a class="struct" href="struct.UniformInt.html" title="struct bdk_chain::bitcoin::secp256k1::rand::distributions::uniform::UniformInt">UniformInt</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-SampleUniform-for-u16" class="impl"><a class="src rightside" href="https://rust-random.github.io/rand/src/rand/distributions/uniform.rs.html#566">source</a><a href="#impl-SampleUniform-for-u16" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.SampleUniform.html" title="trait bdk_chain::bitcoin::secp256k1::rand::distributions::uniform::SampleUniform">SampleUniform</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Sampler-11" class="associatedtype trait-impl"><a href="#associatedtype.Sampler-11" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Sampler" class="associatedtype">Sampler</a> = <a class="struct" href="struct.UniformInt.html" title="struct bdk_chain::bitcoin::secp256k1::rand::distributions::uniform::UniformInt">UniformInt</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-SampleUniform-for-u32" class="impl"><a class="src rightside" href="https://rust-random.github.io/rand/src/rand/distributions/uniform.rs.html#567">source</a><a href="#impl-SampleUniform-for-u32" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.SampleUniform.html" title="trait bdk_chain::bitcoin::secp256k1::rand::distributions::uniform::SampleUniform">SampleUniform</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Sampler-12" class="associatedtype trait-impl"><a href="#associatedtype.Sampler-12" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Sampler" class="associatedtype">Sampler</a> = <a class="struct" href="struct.UniformInt.html" title="struct bdk_chain::bitcoin::secp256k1::rand::distributions::uniform::UniformInt">UniformInt</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-SampleUniform-for-u64" class="impl"><a class="src rightside" href="https://rust-random.github.io/rand/src/rand/distributions/uniform.rs.html#568">source</a><a href="#impl-SampleUniform-for-u64" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.SampleUniform.html" title="trait bdk_chain::bitcoin::secp256k1::rand::distributions::uniform::SampleUniform">SampleUniform</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Sampler-13" class="associatedtype trait-impl"><a href="#associatedtype.Sampler-13" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Sampler" class="associatedtype">Sampler</a> = <a class="struct" href="struct.UniformInt.html" title="struct bdk_chain::bitcoin::secp256k1::rand::distributions::uniform::UniformInt">UniformInt</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-SampleUniform-for-u128" class="impl"><a class="src rightside" href="https://rust-random.github.io/rand/src/rand/distributions/uniform.rs.html#570">source</a><a href="#impl-SampleUniform-for-u128" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.SampleUniform.html" title="trait bdk_chain::bitcoin::secp256k1::rand::distributions::uniform::SampleUniform">SampleUniform</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u128.html">u128</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Sampler-14" class="associatedtype trait-impl"><a href="#associatedtype.Sampler-14" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Sampler" class="associatedtype">Sampler</a> = <a class="struct" href="struct.UniformInt.html" title="struct bdk_chain::bitcoin::secp256k1::rand::distributions::uniform::UniformInt">UniformInt</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u128.html">u128</a>></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-SampleUniform-for-usize" class="impl"><a class="src rightside" href="https://rust-random.github.io/rand/src/rand/distributions/uniform.rs.html#569">source</a><a href="#impl-SampleUniform-for-usize" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.SampleUniform.html" title="trait bdk_chain::bitcoin::secp256k1::rand::distributions::uniform::SampleUniform">SampleUniform</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Sampler-15" class="associatedtype trait-impl"><a href="#associatedtype.Sampler-15" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Sampler" class="associatedtype">Sampler</a> = <a class="struct" href="struct.UniformInt.html" title="struct bdk_chain::bitcoin::secp256k1::rand::distributions::uniform::UniformInt">UniformInt</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-SampleUniform-for-Duration" class="impl"><a class="src rightside" href="https://rust-random.github.io/rand/src/rand/distributions/uniform.rs.html#1046">source</a><a href="#impl-SampleUniform-for-Duration" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.SampleUniform.html" title="trait bdk_chain::bitcoin::secp256k1::rand::distributions::uniform::SampleUniform">SampleUniform</a> for <a class="struct" href="https://doc.rust-lang.org/nightly/core/time/struct.Duration.html" title="struct core::time::Duration">Duration</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Sampler-16" class="associatedtype trait-impl"><a href="#associatedtype.Sampler-16" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Sampler" class="associatedtype">Sampler</a> = <a class="struct" href="struct.UniformDuration.html" title="struct bdk_chain::bitcoin::secp256k1::rand::distributions::uniform::UniformDuration">UniformDuration</a></h4></section></div></details><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"></div><script src="../../../../../../trait.impl/rand/distributions/uniform/trait.SampleUniform.js" data-ignore-extern-crates="core,std" async></script></section></div></main></body></html>