pub trait Numeric: Copy + Clone + PartialEq + PartialOrd + Display + Add<Self, Output = Self> + Sub<Self, Output = Self> + Mul<Self, Output = Self> + Div<Self, Output = Self> {
    const ZERO: Self;
    const ONE: Self;

    // Required method
    fn rand(range: RangeInclusive<Self>) -> Self;
}
Expand description

Base numeric type for array

Required Associated Constants§

source

const ZERO: Self

Zero constant value

source

const ONE: Self

One constant value

Required Methods§

source

fn rand(range: RangeInclusive<Self>) -> Self

Generate random value

Implementations on Foreign Types§

source§

impl Numeric for u16

source§

const ZERO: Self = 0u16

source§

const ONE: Self = 1u16

source§

fn rand(range: RangeInclusive<Self>) -> u16

source§

impl Numeric for f64

source§

const ZERO: Self = 0f64

source§

const ONE: Self = 1f64

source§

fn rand(range: RangeInclusive<Self>) -> f64

source§

impl Numeric for u32

source§

const ZERO: Self = 0u32

source§

const ONE: Self = 1u32

source§

fn rand(range: RangeInclusive<Self>) -> u32

source§

impl Numeric for i16

source§

const ZERO: Self = 0i16

source§

const ONE: Self = 1i16

source§

fn rand(range: RangeInclusive<Self>) -> i16

source§

impl Numeric for u64

source§

const ZERO: Self = 0u64

source§

const ONE: Self = 1u64

source§

fn rand(range: RangeInclusive<Self>) -> u64

source§

impl Numeric for f32

source§

const ZERO: Self = 0f32

source§

const ONE: Self = 1f32

source§

fn rand(range: RangeInclusive<Self>) -> f32

source§

impl Numeric for i8

source§

const ZERO: Self = 0i8

source§

const ONE: Self = 1i8

source§

fn rand(range: RangeInclusive<Self>) -> i8

source§

impl Numeric for i32

source§

const ZERO: Self = 0i32

source§

const ONE: Self = 1i32

source§

fn rand(range: RangeInclusive<Self>) -> i32

source§

impl Numeric for i64

source§

const ZERO: Self = 0i64

source§

const ONE: Self = 1i64

source§

fn rand(range: RangeInclusive<Self>) -> i64

source§

impl Numeric for u8

source§

const ZERO: Self = 0u8

source§

const ONE: Self = 1u8

source§

fn rand(range: RangeInclusive<Self>) -> u8

Implementors§