Struct blstrs::Fp6[][src]

pub struct Fp6(_);

This represents an element $c_0 + c_1 v + c_2 v^2$ of $\mathbb{F}{p^6} = \mathbb{F}{p^2} / v^3 - u - 1$.

Implementations

impl Fp6[src]

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

Constructs an element of Fp6.

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

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

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

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

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

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

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

pub fn mul_by_nonresidue(&mut self)[src]

Multiply by quadratic nonresidue v.

Trait Implementations

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

type Output = Fp6

The resulting type after applying the + operator.

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

type Output = Fp6

The resulting type after applying the + operator.

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

type Output = Fp6

The resulting type after applying the + operator.

impl Add<Fp6> for Fp6[src]

type Output = Fp6

The resulting type after applying the + operator.

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

impl AddAssign<Fp6> for Fp6[src]

impl Clone for Fp6[src]

impl Copy for Fp6[src]

impl Debug for Fp6[src]

impl Default for Fp6[src]

impl Display for Fp6[src]

impl Eq for Fp6[src]

impl Field for Fp6[src]

impl From<Fp> for Fp6[src]

impl From<Fp2> for Fp6[src]

impl From<Fp6> for Fp12[src]

impl From<blst_fp6> for Fp6[src]

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

type Output = Fp6

The resulting type after applying the * operator.

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

type Output = Fp6

The resulting type after applying the * operator.

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

type Output = Fp6

The resulting type after applying the * operator.

impl Mul<Fp6> for Fp6[src]

type Output = Fp6

The resulting type after applying the * operator.

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

impl MulAssign<Fp6> for Fp6[src]

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

type Output = Fp6

The resulting type after applying the - operator.

impl Neg for Fp6[src]

type Output = Fp6

The resulting type after applying the - operator.

impl PartialEq<Fp6> for Fp6[src]

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

type Output = Fp6

The resulting type after applying the - operator.

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

type Output = Fp6

The resulting type after applying the - operator.

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

type Output = Fp6

The resulting type after applying the - operator.

impl Sub<Fp6> for Fp6[src]

type Output = Fp6

The resulting type after applying the - operator.

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

impl SubAssign<Fp6> for Fp6[src]

Auto Trait Implementations

impl RefUnwindSafe for Fp6

impl Send for Fp6

impl Sync for Fp6

impl Unpin for Fp6

impl UnwindSafe for Fp6

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>,