Skip to main content

RandInt

Trait RandInt 

Source
pub trait RandInt:
    Sealed
    + Copy
    + PartialOrd { }
Expand description

Integer types accepted by gen_range / gen_range_inclusive.

Sealed: only u8 / u16 / u32 / u64 / usize implement this trait.

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 RandInt for u8

Source§

impl RandInt for u16

Source§

impl RandInt for u32

Source§

impl RandInt for u64

Source§

impl RandInt for usize

Implementors§