Struct blstrs::Fp6 [−][src]
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.
fn add(self, rhs: &'b Fp6) -> Fp6
[src]
impl<'b> Add<&'b Fp6> for Fp6
[src]
type Output = Fp6
The resulting type after applying the +
operator.
fn add(self, rhs: &'b Fp6) -> Fp6
[src]
impl<'a> Add<Fp6> for &'a Fp6
[src]
type Output = Fp6
The resulting type after applying the +
operator.
fn add(self, rhs: Fp6) -> Fp6
[src]
impl Add<Fp6> for Fp6
[src]
type Output = Fp6
The resulting type after applying the +
operator.
fn add(self, rhs: Fp6) -> Fp6
[src]
impl<'b> AddAssign<&'b Fp6> for Fp6
[src]
fn add_assign(&mut self, rhs: &'b Fp6)
[src]
impl AddAssign<Fp6> for Fp6
[src]
fn add_assign(&mut self, rhs: 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]
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]
pub fn pow<S>(&self, exp: S) -> Self where
S: AsRef<[u64]>,
[src]
S: AsRef<[u64]>,
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.
fn mul(self, rhs: &'b Fp6) -> Fp6
[src]
impl<'b> Mul<&'b Fp6> for Fp6
[src]
type Output = Fp6
The resulting type after applying the *
operator.
fn mul(self, rhs: &'b Fp6) -> Fp6
[src]
impl<'a> Mul<Fp6> for &'a Fp6
[src]
type Output = Fp6
The resulting type after applying the *
operator.
fn mul(self, rhs: Fp6) -> Fp6
[src]
impl Mul<Fp6> for Fp6
[src]
type Output = Fp6
The resulting type after applying the *
operator.
fn mul(self, rhs: Fp6) -> Fp6
[src]
impl<'b> MulAssign<&'b Fp6> for Fp6
[src]
fn mul_assign(&mut self, rhs: &'b Fp6)
[src]
impl MulAssign<Fp6> for Fp6
[src]
fn mul_assign(&mut self, rhs: Fp6)
[src]
impl<'a> Neg for &'a Fp6
[src]
impl Neg for Fp6
[src]
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.
fn sub(self, rhs: &'b Fp6) -> Fp6
[src]
impl<'b> Sub<&'b Fp6> for Fp6
[src]
type Output = Fp6
The resulting type after applying the -
operator.
fn sub(self, rhs: &'b Fp6) -> Fp6
[src]
impl<'a> Sub<Fp6> for &'a Fp6
[src]
type Output = Fp6
The resulting type after applying the -
operator.
fn sub(self, rhs: Fp6) -> Fp6
[src]
impl Sub<Fp6> for Fp6
[src]
type Output = Fp6
The resulting type after applying the -
operator.
fn sub(self, rhs: Fp6) -> Fp6
[src]
impl<'b> SubAssign<&'b Fp6> for Fp6
[src]
fn sub_assign(&mut self, rhs: &'b Fp6)
[src]
impl SubAssign<Fp6> for Fp6
[src]
fn sub_assign(&mut self, rhs: 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]
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,
pub 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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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.
pub 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>,