rand::seq::index

Trait 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

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 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§