[][src]Struct lib_bn::Fq2

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

Methods

impl Fq2[src]

pub fn one() -> Fq2[src]

pub fn i() -> Fq2[src]

pub fn zero() -> Fq2[src]

pub fn new(a: Fq, b: Fq) -> Fq2[src]

Initalizes new F_q2(a + bi, a is real coeff, b is imaginary)

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

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

pub fn real(&self) -> Fq[src]

pub fn imaginary(&self) -> Fq[src]

Trait Implementations

impl Copy for Fq2[src]

impl PartialEq<Fq2> for Fq2[src]

impl Clone for Fq2[src]

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

Performs copy-assignment from source. Read more

impl Eq for Fq2[src]

impl Debug for Fq2[src]

impl Sub<Fq2> for Fq2[src]

type Output = Self

The resulting type after applying the - operator.

impl Add<Fq2> for Fq2[src]

type Output = Self

The resulting type after applying the + operator.

impl Mul<Fq2> for Fq2[src]

type Output = Self

The resulting type after applying the * operator.

impl Neg for Fq2[src]

type Output = Self

The resulting type after applying the - operator.

Auto Trait Implementations

impl Send for Fq2

impl Sync for Fq2

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.