random_number

Trait Bounded

source
pub trait Bounded {
    // Required methods
    fn max_value() -> Self;
    fn min_value() -> Self;
}
Expand description

The random range of different types.

Required Methods§

source

fn max_value() -> Self

source

fn min_value() -> 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 Bounded for f32

source§

fn max_value() -> Self

source§

fn min_value() -> Self

source§

impl Bounded for f64

source§

fn max_value() -> Self

source§

fn min_value() -> Self

source§

impl Bounded for i8

source§

fn max_value() -> Self

source§

fn min_value() -> Self

source§

impl Bounded for i16

source§

fn max_value() -> Self

source§

fn min_value() -> Self

source§

impl Bounded for i32

source§

fn max_value() -> Self

source§

fn min_value() -> Self

source§

impl Bounded for i64

source§

fn max_value() -> Self

source§

fn min_value() -> Self

source§

impl Bounded for i128

source§

fn max_value() -> Self

source§

fn min_value() -> Self

source§

impl Bounded for isize

source§

fn max_value() -> Self

source§

fn min_value() -> Self

source§

impl Bounded for u8

source§

fn max_value() -> Self

source§

fn min_value() -> Self

source§

impl Bounded for u16

source§

fn max_value() -> Self

source§

fn min_value() -> Self

source§

impl Bounded for u32

source§

fn max_value() -> Self

source§

fn min_value() -> Self

source§

impl Bounded for u64

source§

fn max_value() -> Self

source§

fn min_value() -> Self

source§

impl Bounded for u128

source§

fn max_value() -> Self

source§

fn min_value() -> Self

source§

impl Bounded for usize

source§

fn max_value() -> Self

source§

fn min_value() -> Self

Implementors§