[][src]Struct blstrs::Fp12

pub struct Fp12(_);

This represents an element $c_0 + c_1 w$ of $\mathbb{F}{p^12} = \mathbb{F}{p^6} / w^2 - v$.

Implementations

impl Fp12[src]

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

Constructs an element of Fp12.

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

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

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

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

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

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

pub fn conjugate(&mut self)[src]

Trait Implementations

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

type Output = Fp12

The resulting type after applying the + operator.

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

type Output = Fp12

The resulting type after applying the + operator.

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

type Output = Fp12

The resulting type after applying the + operator.

impl Add<Fp12> for Fp12[src]

type Output = Fp12

The resulting type after applying the + operator.

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

impl AddAssign<Fp12> for Fp12[src]

impl Clone for Fp12[src]

impl Copy for Fp12[src]

impl Debug for Fp12[src]

impl Default for Fp12[src]

impl Display for Fp12[src]

impl Eq for Fp12[src]

impl Field for Fp12[src]

impl From<Fp> for Fp12[src]

impl From<Fp12> for blst_fp12[src]

impl From<Fp2> for Fp12[src]

impl From<Fp6> for Fp12[src]

impl From<blst_fp12> for Fp12[src]

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

type Output = Fp12

The resulting type after applying the * operator.

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

type Output = Fp12

The resulting type after applying the * operator.

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

type Output = Fp12

The resulting type after applying the * operator.

impl Mul<Fp12> for Fp12[src]

type Output = Fp12

The resulting type after applying the * operator.

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

impl MulAssign<Fp12> for Fp12[src]

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

type Output = Fp12

The resulting type after applying the - operator.

impl Neg for Fp12[src]

type Output = Fp12

The resulting type after applying the - operator.

impl PartialEq<Fp12> for Fp12[src]

impl StructuralEq for Fp12[src]

impl StructuralPartialEq for Fp12[src]

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

type Output = Fp12

The resulting type after applying the - operator.

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

type Output = Fp12

The resulting type after applying the - operator.

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

type Output = Fp12

The resulting type after applying the - operator.

impl Sub<Fp12> for Fp12[src]

type Output = Fp12

The resulting type after applying the - operator.

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

impl SubAssign<Fp12> for Fp12[src]

Auto Trait Implementations

impl RefUnwindSafe for Fp12

impl Send for Fp12

impl Sync for Fp12

impl Unpin for Fp12

impl UnwindSafe for Fp12

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