[][src]Struct blstrs::Fp2

pub struct Fp2(_);

Implementations

impl Fp2[src]

pub const fn new(c0: Fp, c1: Fp) -> Fp2[src]

Constructs an element of Fp2.

pub fn add(&self, rhs: &Fp2) -> Fp2[src]

pub fn neg(&self) -> Fp2[src]

pub fn sub(&self, rhs: &Fp2) -> Fp2[src]

pub fn mul(&self, rhs: &Fp2) -> Fp2[src]

pub fn mul3(&self) -> Self[src]

Multiplies self with 3, returning the result.

pub fn mul8(&self) -> Self[src]

Multiplies self with 8, returning the result.

pub fn shl(&self, count: usize) -> Self[src]

Left shift self by count, returning the result.

pub fn c0(&self) -> Fp[src]

pub fn c1(&self) -> Fp[src]

pub fn mul_by_nonresidue(&mut self)[src]

Multiply this element by the cubic and quadratic nonresidue 1 + u.

pub fn norm(&self) -> Fp[src]

Norm of Fq2 as extension field in i over Fq

Trait Implementations

impl<'a, 'b> Add<&'b Fp2> for &'a Fp2[src]

type Output = Fp2

The resulting type after applying the + operator.

impl<'b> Add<&'b Fp2> for Fp2[src]

type Output = Fp2

The resulting type after applying the + operator.

impl<'a> Add<Fp2> for &'a Fp2[src]

type Output = Fp2

The resulting type after applying the + operator.

impl Add<Fp2> for Fp2[src]

type Output = Fp2

The resulting type after applying the + operator.

impl<'b> AddAssign<&'b Fp2> for Fp2[src]

impl AddAssign<Fp2> for Fp2[src]

impl Clone for Fp2[src]

impl Copy for Fp2[src]

impl Debug for Fp2[src]

impl Default for Fp2[src]

impl Display for Fp2[src]

impl Eq for Fp2[src]

impl Field for Fp2[src]

impl From<Fp> for Fp2[src]

impl From<Fp2> for Fp12[src]

impl From<Fp2> for blst_fp2[src]

impl From<Fp2> for Fp6[src]

impl From<blst_fp2> for Fp2[src]

impl<'a, 'b> Mul<&'b Fp2> for &'a Fp2[src]

type Output = Fp2

The resulting type after applying the * operator.

impl<'b> Mul<&'b Fp2> for Fp2[src]

type Output = Fp2

The resulting type after applying the * operator.

impl<'a> Mul<Fp2> for &'a Fp2[src]

type Output = Fp2

The resulting type after applying the * operator.

impl Mul<Fp2> for Fp2[src]

type Output = Fp2

The resulting type after applying the * operator.

impl<'b> MulAssign<&'b Fp2> for Fp2[src]

impl MulAssign<Fp2> for Fp2[src]

impl<'a> Neg for &'a Fp2[src]

type Output = Fp2

The resulting type after applying the - operator.

impl Neg for Fp2[src]

type Output = Fp2

The resulting type after applying the - operator.

impl Ord for Fp2[src]

Fq2 elements are ordered lexicographically.

impl PartialEq<Fp2> for Fp2[src]

impl PartialOrd<Fp2> for Fp2[src]

impl SqrtField for Fp2[src]

impl<'a, 'b> Sub<&'b Fp2> for &'a Fp2[src]

type Output = Fp2

The resulting type after applying the - operator.

impl<'b> Sub<&'b Fp2> for Fp2[src]

type Output = Fp2

The resulting type after applying the - operator.

impl<'a> Sub<Fp2> for &'a Fp2[src]

type Output = Fp2

The resulting type after applying the - operator.

impl Sub<Fp2> for Fp2[src]

type Output = Fp2

The resulting type after applying the - operator.

impl<'b> SubAssign<&'b Fp2> for Fp2[src]

impl SubAssign<Fp2> for Fp2[src]

Auto Trait Implementations

impl RefUnwindSafe for Fp2

impl Send for Fp2

impl Sync for Fp2

impl Unpin for Fp2

impl UnwindSafe for Fp2

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,