Skip to main content

Bounded

Trait Bounded 

pub trait Bounded {
    const BITS: usize;
    const BYTES: usize;
}
Expand description

Integers whose representation takes a bounded amount of space.

Required Associated Constants§

const BITS: usize

Size of this integer in bits.

const BYTES: usize

Size of this integer in bytes.

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.

Implementors§

§

impl Bounded for Limb

§

const BITS: usize = Self::BITS

§

const BYTES: usize = Self::BYTES

§

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

§

const BITS: usize = Self::BITS

§

const BYTES: usize = Self::BYTES