[][src]Trait rand::distributions::uniform::SampleUniform

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

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.

Associated Types

type Sampler: UniformSampler<X = Self>

The UniformSampler implementation supporting type X.

Loading content...

Implementations on Foreign Types

impl SampleUniform for i8[src]

type Sampler = UniformInt<i8>

impl SampleUniform for i16[src]

type Sampler = UniformInt<i16>

impl SampleUniform for i32[src]

type Sampler = UniformInt<i32>

impl SampleUniform for i64[src]

type Sampler = UniformInt<i64>

impl SampleUniform for i128[src]

type Sampler = UniformInt<i128>

impl SampleUniform for isize[src]

type Sampler = UniformInt<isize>

impl SampleUniform for u8[src]

type Sampler = UniformInt<u8>

impl SampleUniform for u16[src]

type Sampler = UniformInt<u16>

impl SampleUniform for u32[src]

type Sampler = UniformInt<u32>

impl SampleUniform for u64[src]

type Sampler = UniformInt<u64>

impl SampleUniform for usize[src]

type Sampler = UniformInt<usize>

impl SampleUniform for u128[src]

type Sampler = UniformInt<u128>

impl SampleUniform for u64x2[src]

type Sampler = UniformInt<u64x2>

impl SampleUniform for i64x2[src]

type Sampler = UniformInt<i64x2>

impl SampleUniform for u64x4[src]

type Sampler = UniformInt<u64x4>

impl SampleUniform for i64x4[src]

type Sampler = UniformInt<i64x4>

impl SampleUniform for u64x8[src]

type Sampler = UniformInt<u64x8>

impl SampleUniform for i64x8[src]

type Sampler = UniformInt<i64x8>

impl SampleUniform for u32x2[src]

type Sampler = UniformInt<u32x2>

impl SampleUniform for i32x2[src]

type Sampler = UniformInt<i32x2>

impl SampleUniform for u32x4[src]

type Sampler = UniformInt<u32x4>

impl SampleUniform for i32x4[src]

type Sampler = UniformInt<i32x4>

impl SampleUniform for u32x8[src]

type Sampler = UniformInt<u32x8>

impl SampleUniform for i32x8[src]

type Sampler = UniformInt<i32x8>

impl SampleUniform for u32x16[src]

type Sampler = UniformInt<u32x16>

impl SampleUniform for i32x16[src]

type Sampler = UniformInt<i32x16>

impl SampleUniform for u16x2[src]

type Sampler = UniformInt<u16x2>

impl SampleUniform for i16x2[src]

type Sampler = UniformInt<i16x2>

impl SampleUniform for u16x4[src]

type Sampler = UniformInt<u16x4>

impl SampleUniform for i16x4[src]

type Sampler = UniformInt<i16x4>

impl SampleUniform for u16x8[src]

type Sampler = UniformInt<u16x8>

impl SampleUniform for i16x8[src]

type Sampler = UniformInt<i16x8>

impl SampleUniform for u16x16[src]

type Sampler = UniformInt<u16x16>

impl SampleUniform for i16x16[src]

type Sampler = UniformInt<i16x16>

impl SampleUniform for u16x32[src]

type Sampler = UniformInt<u16x32>

impl SampleUniform for i16x32[src]

type Sampler = UniformInt<i16x32>

impl SampleUniform for u8x2[src]

type Sampler = UniformInt<u8x2>

impl SampleUniform for i8x2[src]

type Sampler = UniformInt<i8x2>

impl SampleUniform for u8x4[src]

type Sampler = UniformInt<u8x4>

impl SampleUniform for i8x4[src]

type Sampler = UniformInt<i8x4>

impl SampleUniform for u8x8[src]

type Sampler = UniformInt<u8x8>

impl SampleUniform for i8x8[src]

type Sampler = UniformInt<i8x8>

impl SampleUniform for u8x16[src]

type Sampler = UniformInt<u8x16>

impl SampleUniform for i8x16[src]

type Sampler = UniformInt<i8x16>

impl SampleUniform for u8x32[src]

type Sampler = UniformInt<u8x32>

impl SampleUniform for i8x32[src]

type Sampler = UniformInt<i8x32>

impl SampleUniform for u8x64[src]

type Sampler = UniformInt<u8x64>

impl SampleUniform for i8x64[src]

type Sampler = UniformInt<i8x64>

impl SampleUniform for f32[src]

type Sampler = UniformFloat<f32>

impl SampleUniform for f64[src]

type Sampler = UniformFloat<f64>

impl SampleUniform for f32x2[src]

type Sampler = UniformFloat<f32x2>

impl SampleUniform for f32x4[src]

type Sampler = UniformFloat<f32x4>

impl SampleUniform for f32x8[src]

type Sampler = UniformFloat<f32x8>

impl SampleUniform for f32x16[src]

type Sampler = UniformFloat<f32x16>

impl SampleUniform for f64x2[src]

type Sampler = UniformFloat<f64x2>

impl SampleUniform for f64x4[src]

type Sampler = UniformFloat<f64x4>

impl SampleUniform for f64x8[src]

type Sampler = UniformFloat<f64x8>

impl SampleUniform for Duration[src]

type Sampler = UniformDuration

Loading content...

Implementors

Loading content...