[−][src]Struct pairing_plus::bls12_381::Fr
Trait Implementations
impl BaseFromRO for Fr
[src]
type BaseLength = U48
fn from_okm(okm: &GenericArray<u8, U48>) -> Fr
[src]
impl Clone for Fr
[src]
impl Copy for Fr
[src]
impl Debug for Fr
[src]
impl Default for Fr
[src]
set the default value for Fr to 0
impl Display for Fr
[src]
impl Eq for Fr
[src]
impl Field for Fr
[src]
fn random<R: RngCore + ?Sized>(rng: &mut R) -> Self
[src]
Computes a uniformly random element using rejection sampling.
fn zero() -> Self
[src]
fn one() -> Self
[src]
fn is_zero(&self) -> bool
[src]
fn add_assign(&mut self, other: &Fr)
[src]
fn double(&mut self)
[src]
fn sub_assign(&mut self, other: &Fr)
[src]
fn negate(&mut self)
[src]
fn inverse(&self) -> Option<Self>
[src]
fn frobenius_map(&mut self, _: usize)
[src]
fn mul_assign(&mut self, other: &Fr)
[src]
fn square(&mut self)
[src]
fn pow<S>(&self, exp: S) -> Self where
S: AsRef<[u64]>,
[src]
S: AsRef<[u64]>,
impl From<Fr> for FrRepr
[src]
impl Ord for Fr
[src]
Elements are ordered lexicographically.
fn cmp(&self, other: &Fr) -> 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<Fr> for Fr
[src]
impl PartialOrd<Fr> for Fr
[src]
fn partial_cmp(&self, other: &Fr) -> 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 PrimeField for Fr
[src]
type Repr = FrRepr
The prime field can be converted back and forth into this biginteger representation. Read more
fn from_repr(r: FrRepr) -> Result<Fr, PrimeFieldDecodingError>
[src]
fn into_repr(&self) -> FrRepr
[src]
fn char() -> FrRepr
[src]
const NUM_BITS: u32
[src]
const CAPACITY: u32
[src]
fn multiplicative_generator() -> Self
[src]
const S: u32
[src]
fn root_of_unity() -> Self
[src]
fn from_str(s: &str) -> Option<Self>
[src]
impl SerDes for Fr
[src]
fn serialize<W: Write>(&self, writer: &mut W, _compressed: bool) -> Result<()>
[src]
The compressed parameter has no effect since Fr element will always be compressed.
fn deserialize<R: Read>(reader: &mut R, _compressed: bool) -> Result<Self>
[src]
The compressed parameter has no effect since Fr element will always be compressed.
impl SqrtField for Fr
[src]
impl Zeroize for Fr
[src]
Auto Trait Implementations
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> FromRO for T where
T: BaseFromRO,
[src]
T: BaseFromRO,
type Length = <T as BaseFromRO>::BaseLength
fn from_ro(&GenericArray<u8, <T as FromRO>::Length>) -> T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
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<Z> Zeroize for Z where
Z: DefaultIsZeroes,
[src]
Z: DefaultIsZeroes,