[−][src]Struct substrate_bn::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.
fn add(self, other: Self) -> Self[src]
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.
fn mul(self, other: Self) -> Self[src]
impl Neg for Fq2[src]
impl PartialEq<Fq2> for Fq2[src]
impl StructuralEq for Fq2[src]
impl StructuralPartialEq for Fq2[src]
impl Sub<Fq2> for Fq2[src]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> 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, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,