[−][src]Struct miracl_core::bls12381::fp2::FP2
Implementations
impl FP2
[src]
pub const fn new() -> FP2
[src]
pub fn new_int(a: isize) -> FP2
[src]
pub fn new_ints(a: isize, b: isize) -> FP2
[src]
pub fn new_copy(x: &FP2) -> FP2
[src]
pub fn new_fps(c: &FP, d: &FP) -> FP2
[src]
pub fn new_bigs(c: &BIG, d: &BIG) -> FP2
[src]
pub fn new_fp(c: &FP) -> FP2
[src]
pub fn new_big(c: &BIG) -> FP2
[src]
pub fn new_rand(rng: &mut RAND) -> FP2
[src]
pub fn reduce(&mut self)
[src]
pub fn norm(&mut self)
[src]
pub fn iszilch(&self) -> bool
[src]
pub fn cmove(&mut self, g: &FP2, d: isize)
[src]
pub fn isunity(&self) -> bool
[src]
pub fn equals(&self, x: &FP2) -> bool
[src]
pub fn getA(&mut self) -> FP
[src]
pub fn getB(&mut self) -> FP
[src]
pub fn geta(&mut self) -> BIG
[src]
pub fn getb(&mut self) -> BIG
[src]
pub fn copy(&mut self, x: &FP2)
[src]
pub fn set_fp(&mut self, x: &FP)
[src]
pub fn zero(&mut self)
[src]
pub fn one(&mut self)
[src]
pub fn sign(&self) -> isize
[src]
pub fn neg(&mut self)
[src]
pub fn conj(&mut self)
[src]
pub fn add(&mut self, x: &FP2)
[src]
pub fn dbl(&mut self)
[src]
pub fn sub(&mut self, x: &FP2)
[src]
pub fn rsub(&mut self, x: &FP2)
[src]
pub fn pmul(&mut self, s: &FP)
[src]
pub fn imul(&mut self, c: isize)
[src]
pub fn sqr(&mut self)
[src]
pub fn mul(&mut self, y: &FP2)
[src]
pub fn qr(&mut self) -> isize
[src]
pub fn sqrt(&mut self)
[src]
pub fn tostring(&self) -> String
[src]
pub fn inverse(&mut self)
[src]
pub fn div2(&mut self)
[src]
pub fn times_i(&mut self)
[src]
pub fn mul_ip(&mut self)
[src]
pub fn div_ip(&mut self)
[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for FP2
impl Send for FP2
impl Sync for FP2
impl Unpin for FP2
impl UnwindSafe for FP2
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>,