Skip to main content

PrimeField32

Trait PrimeField32 

Source
pub trait PrimeField32: PrimeField64 {
    const ORDER_U32: u32;

    // Required method
    fn as_canonical_u32(&self) -> u32;
}
Expand description

A prime field of order less than 2^32.

Required Associated Constants§

Required Methods§

Source

fn as_canonical_u32(&self) -> u32

Return the representative of value that is less than ORDER_U32.

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.

Implementations on Foreign Types§

Source§

impl PrimeField32 for BabyBear

Source§

impl PrimeField32 for KoalaBear

Implementors§