quad_rand

Trait RandomRange

Source
pub trait RandomRange {
    // Required methods
    fn gen_range(low: Self, high: Self) -> Self;
    fn gen_range_with_state(
        state: &RandGenerator,
        low: Self,
        high: Self,
    ) -> Self;
}

Required Methods§

Source

fn gen_range(low: Self, high: Self) -> Self

Source

fn gen_range_with_state(state: &RandGenerator, low: Self, high: Self) -> 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 RandomRange for f32

Source§

fn gen_range(low: Self, high: Self) -> Self

Source§

fn gen_range_with_state(gen: &RandGenerator, low: Self, high: Self) -> Self

Source§

impl RandomRange for f64

Source§

fn gen_range(low: Self, high: Self) -> Self

Source§

fn gen_range_with_state(gen: &RandGenerator, low: Self, high: Self) -> Self

Source§

impl RandomRange for i8

Source§

fn gen_range(low: Self, high: Self) -> Self

Source§

fn gen_range_with_state(gen: &RandGenerator, low: Self, high: Self) -> Self

Source§

impl RandomRange for i16

Source§

fn gen_range(low: Self, high: Self) -> Self

Source§

fn gen_range_with_state(gen: &RandGenerator, low: Self, high: Self) -> Self

Source§

impl RandomRange for i32

Source§

fn gen_range(low: Self, high: Self) -> Self

Source§

fn gen_range_with_state(gen: &RandGenerator, low: Self, high: Self) -> Self

Source§

impl RandomRange for i64

Source§

fn gen_range(low: Self, high: Self) -> Self

Source§

fn gen_range_with_state(gen: &RandGenerator, low: Self, high: Self) -> Self

Source§

impl RandomRange for isize

Source§

fn gen_range(low: Self, high: Self) -> Self

Source§

fn gen_range_with_state(gen: &RandGenerator, low: Self, high: Self) -> Self

Source§

impl RandomRange for u8

Source§

fn gen_range(low: Self, high: Self) -> Self

Source§

fn gen_range_with_state(gen: &RandGenerator, low: Self, high: Self) -> Self

Source§

impl RandomRange for u16

Source§

fn gen_range(low: Self, high: Self) -> Self

Source§

fn gen_range_with_state(gen: &RandGenerator, low: Self, high: Self) -> Self

Source§

impl RandomRange for u32

Source§

fn gen_range(low: Self, high: Self) -> Self

Source§

fn gen_range_with_state(gen: &RandGenerator, low: Self, high: Self) -> Self

Source§

impl RandomRange for u64

Source§

fn gen_range(low: Self, high: Self) -> Self

Source§

fn gen_range_with_state(gen: &RandGenerator, low: Self, high: Self) -> Self

Source§

impl RandomRange for usize

Source§

fn gen_range(low: Self, high: Self) -> Self

Source§

fn gen_range_with_state(gen: &RandGenerator, low: Self, high: Self) -> Self

Implementors§