#[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>
pub fn new(val: U256) -> Option<Self>
pub fn new_mul_factor(val: U256) -> Self
pub fn into_u256(self) -> U256
pub fn set_bit(&mut self, bit: usize, to: bool)
Trait Implementations§
Source§impl BorshDeserialize for Fr
impl BorshDeserialize for Fr
Source§impl BorshSerialize for Fr
impl BorshSerialize for Fr
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