[][src]Trait ff_uint::Field

pub trait Field: Sized + Clone + Copy + Default + PartialEq + Eq + Add<Self, Output = Self> + Sub<Self, Output = Self> + Mul<Self, Output = Self> + Mul<u64, Output = Self> + Div<Self, Output = Self> + Neg<Output = Self> + AddAssign<Self> + SubAssign<Self> + MulAssign<Self> + MulAssign<u64> + DivAssign<Self> + Debug + Display {
    const ZERO: Self;
    const ONE: Self;

    fn random<R: Rng + ?Sized>(rng: &mut R) -> Self;
fn is_zero(&self) -> bool;
fn wrapping_add(self, other: Self) -> Self;
fn wrapping_sub(self, other: Self) -> Self;
fn wrapping_mul(self, other: Self) -> Self;
fn wrapping_neg(self) -> Self;
fn square(self) -> Self;
fn double(self) -> Self;
fn checked_inv(self) -> Option<Self>;
fn frobenius_map(self, power: usize) -> Self; fn wrapping_div(self, other: Self) -> Self { ... }
fn pow<S: BitIterBE>(self, exp: S) -> Self { ... } }

Associated Constants

const ZERO: Self

const ONE: Self

Loading content...

Required methods

fn random<R: Rng + ?Sized>(rng: &mut R) -> Self

fn is_zero(&self) -> bool

fn wrapping_add(self, other: Self) -> Self

fn wrapping_sub(self, other: Self) -> Self

fn wrapping_mul(self, other: Self) -> Self

fn wrapping_neg(self) -> Self

fn square(self) -> Self

fn double(self) -> Self

fn checked_inv(self) -> Option<Self>

fn frobenius_map(self, power: usize) -> Self

Loading content...

Provided methods

fn wrapping_div(self, other: Self) -> Self

fn pow<S: BitIterBE>(self, exp: S) -> Self

Loading content...

Implementors

Loading content...