pub trait Constants: ConstZero {
    const ONE: Self;
    const MAX: Self;
}
Expand description

Trait for associating constant values with a type.

Required Associated Constants§

source

const ONE: Self

The value 1.

source

const MAX: Self

Maximum value this integer can express.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Constants for Limb

source§

const ONE: Self = Self::ONE

source§

const MAX: Self = Self::MAX

source§

impl<const LIMBS: usize> Constants for Uint<LIMBS>

source§

const ONE: Self = Self::ONE

source§

const MAX: Self = Self::MAX