[][src]Struct pairing_plus::bls12_381::Fr

pub struct Fr(_);

Trait Implementations

impl BaseFromRO for Fr[src]

type BaseLength = U48

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.

impl From<Fr> for FrRepr[src]

impl Ord for Fr[src]

Elements are ordered lexicographically.

impl PartialEq<Fr> for Fr[src]

impl PartialOrd<Fr> for Fr[src]

impl PrimeField for Fr[src]

type Repr = FrRepr

The prime field can be converted back and forth into this biginteger representation. Read more

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

impl RefUnwindSafe for Fr

impl Send for Fr

impl Sync for Fr

impl Unpin for Fr

impl UnwindSafe for Fr

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> FromRO for T where
    T: BaseFromRO
[src]

type Length = <T as BaseFromRO>::BaseLength

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<Z> Zeroize for Z where
    Z: DefaultIsZeroes
[src]