[][src]Type Definition zerocaf::field::FieldElement

type FieldElement = FieldElement;

A FieldElement represents an element of the field 2^252 + 27742317777372353535851937790883648493

The FieldElement type is an alias for one of the platform-specific implementations.

Trait Implementations

impl PartialEq<FieldElement> for FieldElement[src]

#[must_use] fn ne(&self, other: &Rhs) -> bool1.0.0[src]

This method tests for !=.

impl ConstantTimeEq for FieldElement[src]

fn ct_eq(&self, other: &FieldElement) -> Choice[src]

Test equality between two FieldElements. Since the internal representation is not canonical, the field elements are normalized to wire format before comparison.

impl ConditionallySelectable for FieldElement[src]

fn conditional_assign(&mut self, other: &Self, choice: Choice)[src]

Conditionally assign other to self, according to choice. Read more

fn conditional_swap(a: &mut Self, b: &mut Self, choice: Choice)[src]

Conditionally swap self and other if choice == 1; otherwise, reassign both unto themselves. Read more