[]Struct amcl_wrapper_ml::types::FP

pub struct FP {
    pub x: BIG,
    pub xes: i32,
}

Fields

x: BIGxes: i32

Methods

impl FP

pub fn new() -> FP

pub fn new_int(a: isize) -> FP

pub fn new_copy(y: &FP) -> FP

pub fn new_big(y: &BIG) -> FP

pub fn nres(&mut self)

pub fn from_hex_iter(iter: &mut SplitWhitespace) -> FP

pub fn from_hex(val: String) -> FP

pub fn to_hex(&self) -> String

pub fn redc(&mut self) -> BIG

pub fn modulo(d: &mut DBIG) -> BIG

pub fn tostring(&mut self) -> String

pub fn reduce(&mut self)

pub fn iszilch(&self) -> bool

pub fn copy(&mut self, b: &FP)

pub fn bcopy(&mut self, b: &BIG)

pub fn zero(&mut self)

pub fn one(&mut self)

pub fn norm(&mut self)

pub fn cswap(&mut self, b: &mut FP, d: isize)

pub fn cmove(&mut self, b: &FP, d: isize)

pub fn mul(&mut self, b: &FP)

pub fn neg(&mut self)

pub fn imul(&mut self, c: isize)

pub fn sqr(&mut self)

pub fn add(&mut self, b: &FP)

pub fn dbl(&mut self)

pub fn sub(&mut self, b: &FP)

pub fn rsub(&mut self, b: &FP)

pub fn div2(&mut self)

pub fn fpow(&mut self) -> FP

pub fn inverse(&mut self)

pub fn equals(&self, a: &FP) -> bool

pub fn pow(&mut self, e: &mut BIG) -> FP

pub fn sqrt(&mut self) -> FP

pub fn jacobi(&mut self) -> isize

Trait Implementations

impl Clone for FP

impl Copy for FP

impl Debug for FP

impl Display for FP

impl PartialEq<FP> for FP

Auto Trait Implementations

impl RefUnwindSafe for FP

impl Send for FP

impl Sync for FP

impl Unpin for FP

impl UnwindSafe for FP

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> Same<T> for T

type Output = T

Should always be Self

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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>,