Trait BigUintArrayFieldHelpers

Source
pub trait BigUintArrayFieldHelpers<const N: usize> {
    // Required method
    fn to_field_limbs<F: Field>(&self) -> [F; N];

    // Provided method
    fn to_fields<F: Field>(&self) -> [F; N] { ... }
}
Expand description

BigUint array PrimeField helpers

Required Methods§

Source

fn to_field_limbs<F: Field>(&self) -> [F; N]

Convert limbs from BigUint to field element

Provided Methods§

Source

fn to_fields<F: Field>(&self) -> [F; N]

Alias for to_field_limbs

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<const N: usize> BigUintArrayFieldHelpers<N> for [BigUint; N]

Source§

fn to_field_limbs<F: Field>(&self) -> [F; N]

Implementors§