#[repr(C)]pub struct Fp { /* private fields */ }
Implementations§
source§impl Fp
impl Fp
pub fn set_little_endian(&mut self, buf: &[u8]) -> bool
pub fn set_little_endian_mod(&mut self, buf: &[u8]) -> bool
pub fn set_hash_of(&mut self, buf: &[u8]) -> bool
pub fn set_by_csprng(&mut self)
pub fn is_odd(&self) -> bool
pub fn is_negative(&self) -> bool
pub fn cmp(&self, rhs: &Fp) -> i32
pub fn square_root(y: &mut Fp, x: &Fp) -> bool
Trait Implementations§
source§impl<'a> AddAssign<&'a Fp> for Fp
impl<'a> AddAssign<&'a Fp> for Fp
source§fn add_assign(&mut self, other: &Fp)
fn add_assign(&mut self, other: &Fp)
Performs the
+=
operation. Read moresource§impl<'a> DivAssign<&'a Fp> for Fp
impl<'a> DivAssign<&'a Fp> for Fp
source§fn div_assign(&mut self, other: &Fp)
fn div_assign(&mut self, other: &Fp)
Performs the
/=
operation. Read moresource§impl<'a> MulAssign<&'a Fp> for Fp
impl<'a> MulAssign<&'a Fp> for Fp
source§fn mul_assign(&mut self, other: &Fp)
fn mul_assign(&mut self, other: &Fp)
Performs the
*=
operation. Read moreAuto Trait Implementations§
impl RefUnwindSafe for Fp
impl Send for Fp
impl Sync for Fp
impl Unpin for Fp
impl UnwindSafe for Fp
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more