bdk_chain::bitcoin::secp256k1::rand::distributions::uniform

Trait SampleUniform

Source
pub trait SampleUniform: Sized {
    type Sampler: UniformSampler<X = Self>;
}
Expand description

Helper trait for creating objects using the correct implementation of UniformSampler for the sampling type.

See the module documentation on how to implement Uniform range sampling for a custom type.

Required Associated Types§

Source

type Sampler: UniformSampler<X = Self>

The UniformSampler implementation supporting type X.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl SampleUniform for char

Source§

impl SampleUniform for f32

Source§

impl SampleUniform for f64

Source§

impl SampleUniform for i8

Source§

impl SampleUniform for i16

Source§

impl SampleUniform for i32

Source§

impl SampleUniform for i64

Source§

impl SampleUniform for i128

Source§

impl SampleUniform for isize

Source§

impl SampleUniform for u8

Source§

impl SampleUniform for u16

Source§

impl SampleUniform for u32

Source§

impl SampleUniform for u64

Source§

impl SampleUniform for u128

Source§

impl SampleUniform for usize

Source§

impl SampleUniform for Duration

Implementors§