[−][src]Struct blstrs::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.
fn add(self, rhs: &'b Fp12) -> Fp12
[src]
impl<'b> Add<&'b Fp12> for Fp12
[src]
type Output = Fp12
The resulting type after applying the +
operator.
fn add(self, rhs: &'b Fp12) -> Fp12
[src]
impl<'a> Add<Fp12> for &'a Fp12
[src]
type Output = Fp12
The resulting type after applying the +
operator.
fn add(self, rhs: Fp12) -> Fp12
[src]
impl Add<Fp12> for Fp12
[src]
type Output = Fp12
The resulting type after applying the +
operator.
fn add(self, rhs: Fp12) -> Fp12
[src]
impl<'b> AddAssign<&'b Fp12> for Fp12
[src]
fn add_assign(&mut self, rhs: &'b Fp12)
[src]
impl AddAssign<Fp12> for Fp12
[src]
fn add_assign(&mut self, rhs: 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]
fn random<R: RngCore>(rng: &mut R) -> Self
[src]
fn zero() -> Self
[src]
fn one() -> Self
[src]
fn is_zero(&self) -> bool
[src]
fn double(&mut self)
[src]
fn negate(&mut self)
[src]
fn add_assign(&mut self, other: &Self)
[src]
fn sub_assign(&mut self, other: &Self)
[src]
fn frobenius_map(&mut self, power: usize)
[src]
fn square(&mut self)
[src]
fn mul_assign(&mut self, other: &Self)
[src]
fn inverse(&self) -> Option<Self>
[src]
fn pow<S>(&self, exp: S) -> Self where
S: AsRef<[u64]>,
[src]
S: AsRef<[u64]>,
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.
fn mul(self, rhs: &'b Fp12) -> Fp12
[src]
impl<'b> Mul<&'b Fp12> for Fp12
[src]
type Output = Fp12
The resulting type after applying the *
operator.
fn mul(self, rhs: &'b Fp12) -> Fp12
[src]
impl<'a> Mul<Fp12> for &'a Fp12
[src]
type Output = Fp12
The resulting type after applying the *
operator.
fn mul(self, rhs: Fp12) -> Fp12
[src]
impl Mul<Fp12> for Fp12
[src]
type Output = Fp12
The resulting type after applying the *
operator.
fn mul(self, rhs: Fp12) -> Fp12
[src]
impl<'b> MulAssign<&'b Fp12> for Fp12
[src]
fn mul_assign(&mut self, rhs: &'b Fp12)
[src]
impl MulAssign<Fp12> for Fp12
[src]
fn mul_assign(&mut self, rhs: Fp12)
[src]
impl<'a> Neg for &'a Fp12
[src]
impl Neg for Fp12
[src]
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.
fn sub(self, rhs: &'b Fp12) -> Fp12
[src]
impl<'b> Sub<&'b Fp12> for Fp12
[src]
type Output = Fp12
The resulting type after applying the -
operator.
fn sub(self, rhs: &'b Fp12) -> Fp12
[src]
impl<'a> Sub<Fp12> for &'a Fp12
[src]
type Output = Fp12
The resulting type after applying the -
operator.
fn sub(self, rhs: Fp12) -> Fp12
[src]
impl Sub<Fp12> for Fp12
[src]
type Output = Fp12
The resulting type after applying the -
operator.
fn sub(self, rhs: Fp12) -> Fp12
[src]
impl<'b> SubAssign<&'b Fp12> for Fp12
[src]
fn sub_assign(&mut self, rhs: &'b Fp12)
[src]
impl SubAssign<Fp12> for Fp12
[src]
fn sub_assign(&mut self, rhs: 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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,