Struct bellperson::bls::Fq2 [−][src]
Expand description
An element of Fq2, represented by c0 + c1 * u.
Fields
c0: Fq
c1: Fq
Implementations
impl Fq2
[src]
impl Fq2
[src]pub fn mul_by_nonresidue(&mut self)
[src]
pub fn mul_by_nonresidue(&mut self)
[src]Multiply this element by the cubic and quadratic nonresidue 1 + u.
Trait Implementations
impl<'de> Deserialize<'de> for Fq2
[src]
impl<'de> Deserialize<'de> for Fq2
[src]pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Fq2, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Fq2, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl Field for Fq2
[src]
impl Field for Fq2
[src]pub fn random<R>(rng: &mut R) -> Fq2 where
R: RngCore,
[src]
pub fn random<R>(rng: &mut R) -> Fq2 where
R: RngCore,
[src]Returns an element chosen uniformly at random using a user-provided RNG.
pub fn add_assign(&mut self, other: &Fq2)
[src]
pub fn add_assign(&mut self, other: &Fq2)
[src]Adds another element to this element.
pub fn sub_assign(&mut self, other: &Fq2)
[src]
pub fn sub_assign(&mut self, other: &Fq2)
[src]Subtracts another element from this element.
pub fn mul_assign(&mut self, other: &Fq2)
[src]
pub fn mul_assign(&mut self, other: &Fq2)
[src]Multiplies another element by this element.
pub fn inverse(&self) -> Option<Fq2>
[src]
pub fn inverse(&self) -> Option<Fq2>
[src]Computes the multiplicative inverse of this element, if nonzero.
pub fn frobenius_map(&mut self, power: usize)
[src]
pub 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
impl Ord for Fq2
[src]
impl Ord for Fq2
[src]Fq2
elements are ordered lexicographically.
impl PartialOrd<Fq2> for Fq2
[src]
impl PartialOrd<Fq2> for Fq2
[src]pub fn partial_cmp(&self, other: &Fq2) -> Option<Ordering>
[src]
pub fn partial_cmp(&self, other: &Fq2) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Serialize for Fq2
[src]
impl Serialize for Fq2
[src]pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]Serialize this value into the given Serde serializer. Read more
impl Signum0 for Fq2
[src]
impl Signum0 for Fq2
[src]pub fn sgn0(&self) -> Sgn0Result
[src]
pub fn sgn0(&self) -> Sgn0Result
[src]Returns either Negative or NonNegative.
fn negate_if(&mut self, sgn: Sgn0Result)
[src]
fn negate_if(&mut self, sgn: Sgn0Result)
[src]Negate if the argument is Negative.
impl Copy for Fq2
[src]
impl Eq for Fq2
[src]
impl StructuralEq for Fq2
[src]
impl StructuralPartialEq for Fq2
[src]
Auto Trait Implementations
impl RefUnwindSafe for Fq2
impl Send for Fq2
impl Sync for Fq2
impl Unpin for Fq2
impl UnwindSafe for Fq2
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> Pointable for T
impl<T> Pointable for T
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
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>,