#[repr(C)]pub struct Fq(_);
Implementations
sourceimpl Fq
impl Fq
pub fn zero() -> Self
pub fn one() -> Self
pub fn random<R: Rng>(rng: &mut R) -> Self
pub fn pow(&self, exp: Fq) -> 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]) -> Fq
pub fn from_slice(slice: &[u8]) -> Result<Self, FieldError>
pub fn to_big_endian(&self, slice: &mut [u8]) -> Result<(), FieldError>
pub fn from_u256(u256: U256) -> Result<Self, FieldError>
pub fn into_u256(self) -> U256
pub fn modulus() -> U256
pub fn sqrt(&self) -> Option<Self>
Trait Implementations
impl Copy for Fq
impl Eq for Fq
impl StructuralEq for Fq
impl StructuralPartialEq for Fq
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more