[−][src]Struct parity_bn::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(&self) -> 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.
fn sub(self, other: Self) -> Self
[src]
impl Add<Fq2> for Fq2
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, other: Self) -> Self
[src]
impl Mul<Fq2> for Fq2
[src]
type Output = Self
The resulting type after applying the *
operator.
fn mul(self, other: Self) -> Self
[src]
impl Neg for Fq2
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,