Struct bn::Fr
[−]
[src]
pub struct Fr(_);
Methods
impl Fr
[src]
fn zero() -> Self
fn one() -> Self
fn random<R: Rng>(rng: &mut R) -> Self
fn pow(&self, exp: Fr) -> Self
fn from_str(s: &str) -> Option<Self>
fn inverse(&self) -> Option<Self>
fn is_zero(&self) -> bool
Trait Implementations
impl Copy for Fr
[src]
impl Clone for Fr
[src]
fn clone(&self) -> Fr
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for Fr
[src]
fn eq(&self, __arg_0: &Fr) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Fr) -> bool
This method tests for !=
.
impl Eq for Fr
[src]
impl Decodable for Fr
[src]
impl Encodable for Fr
[src]
impl Add<Fr> for Fr
[src]
type Output = Fr
The resulting type after applying the +
operator
fn add(self, other: Fr) -> Fr
The method for the +
operator
impl Sub<Fr> for Fr
[src]
type Output = Fr
The resulting type after applying the -
operator
fn sub(self, other: Fr) -> Fr
The method for the -
operator
impl Neg for Fr
[src]
type Output = Fr
The resulting type after applying the -
operator
fn neg(self) -> Fr
The method for the unary -
operator