Trait Bounded

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

Integers whose representation takes a bounded amount of space.

Required Associated Constants§

Source

const BITS: u32

Size of this integer in bits.

Source

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§

Source§

impl Bounded for Limb

Source§

const BITS: u32 = 64u32

Source§

const BYTES: usize = 8usize

Source§

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

Source§

const BITS: u32 = Self::BITS

Source§

const BYTES: usize = Self::BYTES

Source§

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

Source§

const BITS: u32 = Self::BITS

Source§

const BYTES: usize = Self::BYTES