#[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 Freeze for Fp
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