binius_field::underlier

Trait UnderlierType

source
pub trait UnderlierType:
    Debug
    + Default
    + PartialEq
    + Eq
    + ConstantTimeEq
    + Copy
    + Random
    + NoUninit
    + Zeroable
    + Sized
    + Send
    + Sync
    + 'static {
    const LOG_BITS: usize;
    const BITS: usize = _;
}
Expand description

Primitive integer underlying a binary field or packed binary field implementation. Note that this type is not guaranteed to be POD, U1, U2 and U4 have some unused bits.

Required Associated Constants§

source

const LOG_BITS: usize

Number of bits in value

Provided Associated Constants§

source

const BITS: usize = _

Number of bits used to represent a value. This may not be equal to the number of bits in a type instance.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl UnderlierType for u8

source§

const LOG_BITS: usize = 3usize

source§

impl UnderlierType for u16

source§

const LOG_BITS: usize = 4usize

source§

impl UnderlierType for u32

source§

const LOG_BITS: usize = 5usize

source§

impl UnderlierType for u64

source§

const LOG_BITS: usize = 6usize

source§

impl UnderlierType for u128

source§

const LOG_BITS: usize = 7usize

Implementors§

source§

impl<U: UnderlierType + Pod, const N: usize> UnderlierType for ScaledUnderlier<U, N>

source§

impl<const N: usize> UnderlierType for SmallU<N>