Struct pairing_ce::bls12_381::Fq2 [−][src]
An element of Fq2, represented by c0 + c1 * u.
Fields
c0: Fq
c1: Fq
Implementations
impl Fq2
[src]
impl Fq2
[src]pub fn mul_by_nonresidue(&mut self)
[src]
pub fn mul_by_nonresidue(&mut self)
[src]Multiply this element by the cubic and quadratic nonresidue 1 + u.
Trait Implementations
impl Field for Fq2
[src]
impl Field for Fq2
[src]fn add_assign(&mut self, other: &Self)
[src]
fn add_assign(&mut self, other: &Self)
[src]Adds another element to this element.
fn sub_assign(&mut self, other: &Self)
[src]
fn sub_assign(&mut self, other: &Self)
[src]Subtracts another element from this element.
fn mul_assign(&mut self, other: &Self)
[src]
fn mul_assign(&mut self, other: &Self)
[src]Multiplies another element by 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, power: usize)
[src]
fn frobenius_map(&mut self, power: usize)
[src]Exponentiates this element by a power of the base prime modulus via the Frobenius automorphism. Read more
impl Ord for Fq2
[src]
impl Ord for Fq2
[src]Fq2
elements are ordered lexicographically.
impl PartialOrd<Fq2> for Fq2
[src]
impl PartialOrd<Fq2> for Fq2
[src]fn partial_cmp(&self, other: &Fq2) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Fq2) -> 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 Copy for Fq2
[src]
impl Eq for Fq2
[src]
impl StructuralEq for Fq2
[src]
impl StructuralPartialEq for Fq2
[src]
Auto Trait Implementations
impl RefUnwindSafe for Fq2
impl Send for Fq2
impl Sync for Fq2
impl Unpin for Fq2
impl UnwindSafe for Fq2
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