Struct pairing_ce::bls12_381::fq::Fq
source · pub struct Fq(/* private fields */);
Trait Implementations§
source§impl<'de> Deserialize<'de> for Fq
impl<'de> Deserialize<'de> for Fq
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Field for Fq
impl Field for Fq
source§fn add_assign(&mut self, other: &Fq)
fn add_assign(&mut self, other: &Fq)
Adds another element to this element.
source§fn sub_assign(&mut self, other: &Fq)
fn sub_assign(&mut self, other: &Fq)
Subtracts another element from this element.
source§fn inverse(&self) -> Option<Self>
fn inverse(&self) -> Option<Self>
Computes the multiplicative inverse of this element, if nonzero.
source§fn frobenius_map(&mut self, _: usize)
fn frobenius_map(&mut self, _: usize)
Exponentiates this element by a power of the base prime modulus via
the Frobenius automorphism.
source§fn mul_assign(&mut self, other: &Fq)
fn mul_assign(&mut self, other: &Fq)
Multiplies another element by this element.
source§impl Ord for Fq
impl Ord for Fq
Elements are ordered lexicographically.
source§impl PartialOrd for Fq
impl PartialOrd for Fq
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl PrimeField for Fq
impl PrimeField for Fq
§type Repr = FqRepr
type Repr = FqRepr
The prime field can be converted back and forth into this biginteger
representation.
source§fn from_repr(r: FqRepr) -> Result<Fq, PrimeFieldDecodingError>
fn from_repr(r: FqRepr) -> Result<Fq, PrimeFieldDecodingError>
Convert this prime field element into a biginteger representation.
source§fn from_raw_repr(r: FqRepr) -> Result<Self, PrimeFieldDecodingError>
fn from_raw_repr(r: FqRepr) -> Result<Self, PrimeFieldDecodingError>
Creates an element from raw representation in Montgommery form.
source§fn into_repr(&self) -> FqRepr
fn into_repr(&self) -> FqRepr
Convert a biginteger representation into a prime field element, if
the number is an element of the field.
source§fn into_raw_repr(&self) -> FqRepr
fn into_raw_repr(&self) -> FqRepr
Expose Montgommery represendation.
source§const CAPACITY: u32 = 380u32
const CAPACITY: u32 = 380u32
How many bits of information can be reliably stored in the field element.
source§fn multiplicative_generator() -> Self
fn multiplicative_generator() -> Self
Returns the multiplicative generator of
char()
- 1 order. This element
must also be quadratic nonresidue.source§fn root_of_unity() -> Self
fn root_of_unity() -> Self
Returns the 2^s root of unity computed by exponentiating the
multiplicative_generator()
by t.impl Copy for Fq
impl Eq for Fq
Auto Trait Implementations§
impl Freeze for Fq
impl RefUnwindSafe for Fq
impl Send for Fq
impl Sync for Fq
impl Unpin for Fq
impl UnwindSafe for Fq
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)