Trait SizedField

Source
pub trait SizedField {
    const CLOG2: u32;
    const FLOG2: u32;
}
Expand description

Trait representing bit size information for a field

Required Associated Constants§

Source

const CLOG2: u32

Ceil of log2(cardinality)

Source

const FLOG2: u32

Floor of log2(cardinality)

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<T: PrimeField> SizedField for T

Source§

const CLOG2: u32 = <T as PrimeField>::NUM_BITS

Source§

const FLOG2: u32