Trait ForeignFieldHelpers

Source
pub trait ForeignFieldHelpers<F, const B: usize> {
    // Required methods
    fn two_to_limb() -> F;
    fn two_to_2limb() -> F;
    fn two_to_3limb() -> F;
}
Expand description

Foreign field helpers for B the limb size.

Required Methods§

Source

fn two_to_limb() -> F

2^{B}

Source

fn two_to_2limb() -> F

2^{2 * B}

Source

fn two_to_3limb() -> F

2^{3 * B}

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<F: Field, const B: usize, const N: usize> ForeignFieldHelpers<F, B> for ForeignElement<F, B, N>