pub struct FP2 { /* private fields */ }
Implementations
sourceimpl FP2
impl FP2
pub fn new() -> FP2
pub fn new_int(a: isize) -> FP2
pub fn new_copy(x: &FP2) -> FP2
pub fn new_fps(c: &FP, d: &FP) -> FP2
pub fn new_bigs(c: &BIG, d: &BIG) -> FP2
pub fn new_fp(c: &FP) -> FP2
pub fn new_big(c: &BIG) -> FP2
pub fn reduce(&mut self)
pub fn norm(&mut self)
pub fn iszilch(&self) -> bool
pub fn cmove(&mut self, g: &FP2, d: isize)
pub fn isunity(&self) -> bool
pub fn equals(&self, x: &FP2) -> bool
pub fn geta(&mut self) -> BIG
pub fn getb(&mut self) -> BIG
pub fn copy(&mut self, x: &FP2)
pub fn zero(&mut self)
pub fn one(&mut self)
pub fn neg(&mut self)
pub fn conj(&mut self)
pub fn add(&mut self, x: &FP2)
pub fn dbl(&mut self)
pub fn sub(&mut self, x: &FP2)
pub fn rsub(&mut self, x: &FP2)
pub fn pmul(&mut self, s: &FP)
pub fn imul(&mut self, c: isize)
pub fn sqr(&mut self)
pub fn mul(&mut self, y: &FP2)
pub fn sqrt(&mut self) -> bool
pub fn tostring(&mut self) -> String
pub fn to_hex(&self) -> String
pub fn from_hex_iter(iter: &mut SplitWhitespace<'_>) -> FP2
pub fn from_hex(val: String) -> FP2
pub fn inverse(&mut self)
pub fn div2(&mut self)
pub fn times_i(&mut self)
pub fn mul_ip(&mut self)
pub fn div_ip2(&mut self)
pub fn div_ip(&mut self)
Trait Implementations
impl Copy for FP2
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more