crypto_bigint::prelude

Trait Bounded

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

Integers whose representation takes a bounded amount of space.

Required Associated Constants§

Source

const BITS: usize

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: usize = 64usize

Source§

const BYTES: usize = 8usize

Source§

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

Source§

const BITS: usize = Self::BITS

Source§

const BYTES: usize = Self::BYTES