Trait rand::distributions::uniform::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.

Object Safety§

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§