#[repr(C)]pub struct Fr(/* private fields */);
Implementations§
Source§impl Fr
impl Fr
pub fn zero() -> Self
pub fn one() -> Self
pub fn random<R: Rng>(rng: &mut R) -> Self
pub fn pow(&self, exp: Fr) -> Self
pub fn from_str(s: &str) -> Option<Self>
pub fn inverse(&self) -> Option<Self>
pub fn is_zero(&self) -> bool
pub fn interpret(buf: &[u8; 64]) -> Fr
pub fn from_slice(slice: &[u8]) -> Result<Self, FieldError>
pub fn to_big_endian(&self, slice: &mut [u8]) -> Result<(), FieldError>
Trait Implementations§
impl Copy for Fr
impl Eq for Fr
impl StructuralPartialEq for Fr
Auto Trait Implementations§
impl Freeze for Fr
impl RefUnwindSafe for Fr
impl Send for Fr
impl Sync for Fr
impl Unpin for Fr
impl UnwindSafe for Fr
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)