Struct blstrs::Fp6 [−][src]
pub struct Fp6(_);
Expand description
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]
impl Fp6
[src]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]
pub fn mul_by_nonresidue(&mut self)
[src]Multiply by quadratic nonresidue v.
Trait Implementations
impl<'b> AddAssign<&'b Fp6> for Fp6
[src]
impl<'b> AddAssign<&'b Fp6> for Fp6
[src]fn add_assign(&mut self, rhs: &'b Fp6)
[src]
fn add_assign(&mut self, rhs: &'b Fp6)
[src]Performs the +=
operation. Read more
impl AddAssign<Fp6> for Fp6
[src]
impl AddAssign<Fp6> for Fp6
[src]fn add_assign(&mut self, rhs: Fp6)
[src]
fn add_assign(&mut self, rhs: Fp6)
[src]Performs the +=
operation. Read more
impl<'de> Deserialize<'de> for Fp6
[src]
impl<'de> Deserialize<'de> for Fp6
[src]fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
[src]
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
[src]Deserialize this value from the given Serde deserializer. Read more
impl Field for Fp6
[src]
impl Field for Fp6
[src]fn random<R: RngCore>(rng: &mut R) -> Self
[src]
fn random<R: RngCore>(rng: &mut R) -> Self
[src]Returns an element chosen uniformly at random using a user-provided RNG.
fn add_assign(&mut self, other: &Self)
[src]
fn add_assign(&mut self, other: &Self)
[src]Adds another element to this element.
fn sub_assign(&mut self, other: &Self)
[src]
fn sub_assign(&mut self, other: &Self)
[src]Subtracts another element from this element.
fn frobenius_map(&mut self, power: usize)
[src]
fn frobenius_map(&mut self, power: usize)
[src]Exponentiates this element by a power of the base prime modulus via the Frobenius automorphism. Read more
fn mul_assign(&mut self, other: &Self)
[src]
fn mul_assign(&mut self, other: &Self)
[src]Multiplies another element by this element.
impl<'b> MulAssign<&'b Fp6> for Fp6
[src]
impl<'b> MulAssign<&'b Fp6> for Fp6
[src]fn mul_assign(&mut self, rhs: &'b Fp6)
[src]
fn mul_assign(&mut self, rhs: &'b Fp6)
[src]Performs the *=
operation. Read more
impl MulAssign<Fp6> for Fp6
[src]
impl MulAssign<Fp6> for Fp6
[src]fn mul_assign(&mut self, rhs: Fp6)
[src]
fn mul_assign(&mut self, rhs: Fp6)
[src]Performs the *=
operation. Read more
impl<'b> SubAssign<&'b Fp6> for Fp6
[src]
impl<'b> SubAssign<&'b Fp6> for Fp6
[src]fn sub_assign(&mut self, rhs: &'b Fp6)
[src]
fn sub_assign(&mut self, rhs: &'b Fp6)
[src]Performs the -=
operation. Read more
impl SubAssign<Fp6> for Fp6
[src]
impl SubAssign<Fp6> for Fp6
[src]fn sub_assign(&mut self, rhs: Fp6)
[src]
fn sub_assign(&mut self, rhs: Fp6)
[src]Performs the -=
operation. Read more
impl Copy for Fp6
[src]
impl Eq 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> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,