Trait rand::seq::index::UInt

source ·
trait UInt: Copy + PartialOrd + Ord + PartialEq + Eq + SampleUniform + Hash + AddAssign {
    // Required methods
    fn zero() -> Self;
    fn one() -> Self;
    fn as_usize(self) -> usize;
}

Required Methods§

source

fn zero() -> Self

source

fn one() -> Self

source

fn as_usize(self) -> usize

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl UInt for u32

source§

fn zero() -> Self

source§

fn one() -> Self

source§

fn as_usize(self) -> usize

source§

impl UInt for usize

source§

fn zero() -> Self

source§

fn one() -> Self

source§

fn as_usize(self) -> usize

Implementors§