Trait smoke::NumPrimitive[][src]

pub trait NumPrimitive: Copy {
    fn num(r: &mut R) -> Self;
fn num_range(r: &mut R, min_value: Self, max_value: Self) -> Self; }
Expand description

Various instance of numbers generation for primitive num types (u8, u16, …, u128, i8, …, NonZeroU8, …)

Required methods

Return a new value in the whole possible domain of Self

Return a new value between min_value and max_value (both included)

Implementations on Foreign Types

Implementors