Struct pairing_ce::bls12_381::Fr [−][src]
pub struct Fr(_);
Trait Implementations
impl Field for Fr
[src]
impl Field for Fr
[src]fn add_assign(&mut self, other: &Fr)
[src]
fn add_assign(&mut self, other: &Fr)
[src]Adds another element to this element.
fn sub_assign(&mut self, other: &Fr)
[src]
fn sub_assign(&mut self, other: &Fr)
[src]Subtracts another element from this element.
fn inverse(&self) -> Option<Self>
[src]
fn inverse(&self) -> Option<Self>
[src]Computes the multiplicative inverse of this element, if nonzero.
fn frobenius_map(&mut self, _: usize)
[src]
fn frobenius_map(&mut self, _: usize)
[src]Exponentiates this element by a power of the base prime modulus via the Frobenius automorphism. Read more
fn mul_assign(&mut self, other: &Fr)
[src]
fn mul_assign(&mut self, other: &Fr)
[src]Multiplies another element by this element.
impl Ord for Fr
[src]
impl Ord for Fr
[src]Elements are ordered lexicographically.
impl PartialOrd<Fr> for Fr
[src]
impl PartialOrd<Fr> for Fr
[src]fn partial_cmp(&self, other: &Fr) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Fr) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl PrimeField for Fr
[src]
impl PrimeField for Fr
[src]type Repr = FrRepr
type Repr = FrRepr
The prime field can be converted back and forth into this biginteger representation. Read more
fn from_repr(r: FrRepr) -> Result<Fr, PrimeFieldDecodingError>
[src]
fn from_repr(r: FrRepr) -> Result<Fr, PrimeFieldDecodingError>
[src]Convert this prime field element into a biginteger representation.
fn from_raw_repr(r: FrRepr) -> Result<Self, PrimeFieldDecodingError>
[src]
fn from_raw_repr(r: FrRepr) -> Result<Self, PrimeFieldDecodingError>
[src]Creates an element from raw representation in Montgommery form.
fn into_repr(&self) -> FrRepr
[src]
fn into_repr(&self) -> FrRepr
[src]Convert a biginteger representation into a prime field element, if the number is an element of the field. Read more
fn into_raw_repr(&self) -> FrRepr
[src]
fn into_raw_repr(&self) -> FrRepr
[src]Expose Montgommery represendation.
fn multiplicative_generator() -> Self
[src]
fn multiplicative_generator() -> Self
[src]Returns the multiplicative generator of char()
- 1 order. This element
must also be quadratic nonresidue. Read more
fn root_of_unity() -> Self
[src]
fn root_of_unity() -> Self
[src]Returns the 2^s root of unity computed by exponentiating the multiplicative_generator()
by t. Read more
impl Copy for Fr
[src]
impl Eq for Fr
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more