[−][src]Struct substrate_bn::Fq
Implementations
impl Fq[src]
pub fn zero() -> Self[src]
pub fn one() -> Self[src]
pub fn random<R: Rng>(rng: &mut R) -> Self[src]
pub fn pow(&self, exp: Fq) -> Self[src]
pub fn from_str(s: &str) -> Option<Self>[src]
pub fn inverse(&self) -> Option<Self>[src]
pub fn is_zero(&self) -> bool[src]
pub fn interpret(buf: &[u8; 64]) -> Fq[src]
pub fn from_slice(slice: &[u8]) -> Result<Self, FieldError>[src]
pub fn to_big_endian(&self, slice: &mut [u8]) -> Result<(), FieldError>[src]
pub fn from_u256(u256: U256) -> Result<Self, FieldError>[src]
pub fn into_u256(self) -> U256[src]
pub fn modulus() -> U256[src]
pub fn sqrt(&self) -> Option<Self>[src]
Trait Implementations
impl Add<Fq> for Fq[src]
type Output = Fq
The resulting type after applying the + operator.
fn add(self, other: Fq) -> Fq[src]
impl Clone for Fq[src]
impl Copy for Fq[src]
impl Debug for Fq[src]
impl Decodable for Fq[src]
impl Encodable for Fq[src]
impl Eq for Fq[src]
impl Mul<Fq> for Fq[src]
type Output = Fq
The resulting type after applying the * operator.
fn mul(self, other: Fq) -> Fq[src]
impl Neg for Fq[src]
impl PartialEq<Fq> for Fq[src]
impl StructuralEq for Fq[src]
impl StructuralPartialEq for Fq[src]
impl Sub<Fq> for Fq[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,