[−][src]Struct blstrs::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.
fn add(self, rhs: &'b Fp2) -> Fp2
[src]
impl<'b> Add<&'b Fp2> for Fp2
[src]
type Output = Fp2
The resulting type after applying the +
operator.
fn add(self, rhs: &'b Fp2) -> Fp2
[src]
impl<'a> Add<Fp2> for &'a Fp2
[src]
type Output = Fp2
The resulting type after applying the +
operator.
fn add(self, rhs: Fp2) -> Fp2
[src]
impl Add<Fp2> for Fp2
[src]
type Output = Fp2
The resulting type after applying the +
operator.
fn add(self, rhs: Fp2) -> Fp2
[src]
impl<'b> AddAssign<&'b Fp2> for Fp2
[src]
fn add_assign(&mut self, rhs: &'b Fp2)
[src]
impl AddAssign<Fp2> for Fp2
[src]
fn add_assign(&mut self, rhs: 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]
fn random<R: RngCore>(rng: &mut R) -> Self
[src]
fn zero() -> Self
[src]
fn one() -> Self
[src]
fn is_zero(&self) -> bool
[src]
fn square(&mut self)
[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 mul_assign(&mut self, other: &Self)
[src]
fn inverse(&self) -> Option<Self>
[src]
fn frobenius_map(&mut self, power: usize)
[src]
fn pow<S>(&self, exp: S) -> Self where
S: AsRef<[u64]>,
[src]
S: AsRef<[u64]>,
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.
fn mul(self, rhs: &'b Fp2) -> Fp2
[src]
impl<'b> Mul<&'b Fp2> for Fp2
[src]
type Output = Fp2
The resulting type after applying the *
operator.
fn mul(self, rhs: &'b Fp2) -> Fp2
[src]
impl<'a> Mul<Fp2> for &'a Fp2
[src]
type Output = Fp2
The resulting type after applying the *
operator.
fn mul(self, rhs: Fp2) -> Fp2
[src]
impl Mul<Fp2> for Fp2
[src]
type Output = Fp2
The resulting type after applying the *
operator.
fn mul(self, rhs: Fp2) -> Fp2
[src]
impl<'b> MulAssign<&'b Fp2> for Fp2
[src]
fn mul_assign(&mut self, rhs: &'b Fp2)
[src]
impl MulAssign<Fp2> for Fp2
[src]
fn mul_assign(&mut self, rhs: Fp2)
[src]
impl<'a> Neg for &'a Fp2
[src]
impl Neg for Fp2
[src]
impl Ord for Fp2
[src]
Fq2
elements are ordered lexicographically.
fn cmp(&self, other: &Fp2) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<Fp2> for Fp2
[src]
impl PartialOrd<Fp2> for Fp2
[src]
fn partial_cmp(&self, other: &Fp2) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[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.
fn sub(self, rhs: &'b Fp2) -> Fp2
[src]
impl<'b> Sub<&'b Fp2> for Fp2
[src]
type Output = Fp2
The resulting type after applying the -
operator.
fn sub(self, rhs: &'b Fp2) -> Fp2
[src]
impl<'a> Sub<Fp2> for &'a Fp2
[src]
type Output = Fp2
The resulting type after applying the -
operator.
fn sub(self, rhs: Fp2) -> Fp2
[src]
impl Sub<Fp2> for Fp2
[src]
type Output = Fp2
The resulting type after applying the -
operator.
fn sub(self, rhs: Fp2) -> Fp2
[src]
impl<'b> SubAssign<&'b Fp2> for Fp2
[src]
fn sub_assign(&mut self, rhs: &'b Fp2)
[src]
impl SubAssign<Fp2> for Fp2
[src]
fn sub_assign(&mut self, rhs: 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]
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>,