Struct substrate_bn::Fr [−][src]
#[repr(C)]pub struct Fr(_);
Implementations
impl Fr
[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: Fr) -> 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]) -> Fr
[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 new(val: U256) -> Option<Self>
[src]
pub fn new_mul_factor(val: U256) -> Self
[src]
pub fn into_u256(self) -> U256
[src]
pub fn set_bit(&mut self, bit: usize, to: bool)
[src]
Trait Implementations
impl Add<Fr> for Fr
[src]
type Output = Fr
The resulting type after applying the +
operator.
fn add(self, other: Fr) -> Fr
[src]
impl Clone for Fr
[src]
impl Copy for Fr
[src]
impl Debug for Fr
[src]
impl Eq for Fr
[src]
impl Mul<Fr> for Fr
[src]
type Output = Fr
The resulting type after applying the *
operator.
fn mul(self, other: Fr) -> Fr
[src]
impl Mul<Fr> for G1
[src]
type Output = G1
The resulting type after applying the *
operator.
fn mul(self, other: Fr) -> G1
[src]
impl Mul<Fr> for G2
[src]
type Output = G2
The resulting type after applying the *
operator.
fn mul(self, other: Fr) -> G2
[src]
impl Neg for Fr
[src]
impl PartialEq<Fr> for Fr
[src]
impl StructuralEq for Fr
[src]
impl StructuralPartialEq for Fr
[src]
impl Sub<Fr> for Fr
[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,
pub 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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,