#[repr(C)]pub struct Fr(/* private fields */);
Implementations§
source§impl Fr
impl Fr
pub fn zero() -> Self
pub fn one() -> 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 into_bytes(&self) -> Vec<u8>
pub fn new_mul_factor(val: U256) -> Self
Trait Implementations§
source§impl<'de> Deserialize<'de> for Fr
impl<'de> Deserialize<'de> for Fr
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Distribution<Fr> for Standard
impl Distribution<Fr> for Standard
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