[][src]Struct parity_bn::Fq

#[repr(C)]
pub struct Fq(_);

Methods

impl Fq[src]

pub fn zero() -> Self[src]

pub fn one() -> Self[src]

pub fn random<R: Rng>(rng: &mut R) -> Self[src]

pub fn pow(&self, exp: Fq) -> Self[src]

pub fn from_str(s: &str) -> Option<Self>[src]

pub fn inverse(&self) -> Option<Self>[src]

pub fn is_zero(&self) -> bool[src]

pub fn interpret(buf: &[u8; 64]) -> Fq[src]

pub fn from_slice(slice: &[u8]) -> Result<Self, FieldError>[src]

pub fn to_big_endian(&self, slice: &mut [u8]) -> Result<(), FieldError>[src]

pub fn from_u256(u256: U256) -> Result<Self, FieldError>[src]

pub fn into_u256(self) -> U256[src]

pub fn modulus() -> U256[src]

Trait Implementations

impl Copy for Fq[src]

impl PartialEq<Fq> for Fq[src]

impl Clone for Fq[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for Fq[src]

impl Debug for Fq[src]

impl Sub<Fq> for Fq[src]

type Output = Fq

The resulting type after applying the - operator.

impl Add<Fq> for Fq[src]

type Output = Fq

The resulting type after applying the + operator.

impl Mul<Fq> for Fq[src]

type Output = Fq

The resulting type after applying the * operator.

impl Neg for Fq[src]

type Output = Fq

The resulting type after applying the - operator.

impl Encodable for Fq[src]

impl Decodable for Fq[src]

Auto Trait Implementations

impl Send for Fq

impl Sync for Fq

Blanket Implementations

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

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

type Owned = T

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.