Trait Bound

Source
pub trait Bound {
    type X: SampleUniform;

    // Required methods
    fn min_value() -> Self::X;
    fn max_value() -> Self::X;
    fn my_sample(dist: &Uniform<Self::X>, rng: &mut StdRng) -> Self;
}

Required Associated Types§

Required Methods§

Source

fn min_value() -> Self::X

Source

fn max_value() -> Self::X

Source

fn my_sample(dist: &Uniform<Self::X>, rng: &mut StdRng) -> Self

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 Bound for f32

Source§

type X = f32

Source§

fn min_value() -> Self

Source§

fn max_value() -> Self

Source§

fn my_sample(dist: &Uniform<Self>, rng: &mut StdRng) -> Self

Source§

impl Bound for f64

Source§

type X = f64

Source§

fn min_value() -> Self

Source§

fn max_value() -> Self

Source§

fn my_sample(dist: &Uniform<Self>, rng: &mut StdRng) -> Self

Source§

impl Bound for i8

Source§

type X = i8

Source§

fn min_value() -> Self

Source§

fn max_value() -> Self

Source§

fn my_sample(dist: &Uniform<Self>, rng: &mut StdRng) -> Self

Source§

impl Bound for i16

Source§

type X = i16

Source§

fn min_value() -> Self

Source§

fn max_value() -> Self

Source§

fn my_sample(dist: &Uniform<Self>, rng: &mut StdRng) -> Self

Source§

impl Bound for i32

Source§

type X = i32

Source§

fn min_value() -> Self

Source§

fn max_value() -> Self

Source§

fn my_sample(dist: &Uniform<Self>, rng: &mut StdRng) -> Self

Source§

impl Bound for u8

Source§

type X = u8

Source§

fn min_value() -> Self

Source§

fn max_value() -> Self

Source§

fn my_sample(dist: &Uniform<Self>, rng: &mut StdRng) -> Self

Source§

impl Bound for f16

Source§

type X = f16

Source§

fn min_value() -> Self

Source§

fn max_value() -> Self

Source§

fn my_sample(dist: &Uniform<Self>, rng: &mut StdRng) -> Self

Source§

impl Bound for Complex<f32>

Source§

type X = f32

Source§

fn min_value() -> f32

Source§

fn max_value() -> f32

Source§

fn my_sample(dist: &Uniform<f32>, rng: &mut StdRng) -> Self

Source§

impl Bound for Complex<f64>

Source§

type X = f64

Source§

fn min_value() -> f64

Source§

fn max_value() -> f64

Source§

fn my_sample(dist: &Uniform<f64>, rng: &mut StdRng) -> Self

Implementors§