Struct substrate_bn::Fq2[][src]

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

Implementations

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]

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

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

Trait Implementations

impl Add<Fq2> for Fq2[src]

type Output = Self

The resulting type after applying the + operator.

impl Clone for Fq2[src]

impl Copy for Fq2[src]

impl Debug for Fq2[src]

impl Eq for Fq2[src]

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.

impl PartialEq<Fq2> for Fq2[src]

impl StructuralEq for Fq2[src]

impl StructuralPartialEq for Fq2[src]

impl Sub<Fq2> for Fq2[src]

type Output = Self

The resulting type after applying the - operator.

Auto Trait Implementations

impl RefUnwindSafe for Fq2

impl Send for Fq2

impl Sync for Fq2

impl Unpin for Fq2

impl UnwindSafe for Fq2

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, U> Into<U> for T where
    U: From<T>, 
[src]

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

type Owned = T

The resulting type after obtaining ownership.

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<V, T> VZip<V> for T where
    V: MultiLane<T>,