Struct bn::Fr
[−]
[src]
#[repr(C)]pub struct Fr(_);
Methods
impl Fr
[src]
fn zero() -> Self
[src]
fn one() -> Self
[src]
fn random<R: Rng>(rng: &mut R) -> Self
[src]
fn pow(&self, exp: Fr) -> Self
[src]
fn from_str(s: &str) -> Option<Self>
[src]
fn inverse(&self) -> Option<Self>
[src]
fn is_zero(&self) -> bool
[src]
fn interpret(buf: &[u8; 64]) -> Fr
[src]
fn from_slice(slice: &[u8]) -> Result<Self, FieldError>
[src]
fn to_big_endian(&self, slice: &mut [u8]) -> Result<(), FieldError>
[src]
Trait Implementations
impl Copy for Fr
[src]
impl Clone for Fr
[src]
fn clone(&self) -> Fr
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Fr
[src]
impl PartialEq for Fr
[src]
fn eq(&self, __arg_0: &Fr) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Fr) -> bool
[src]
This method tests for !=
.
impl Eq for Fr
[src]
impl Decodable for Fr
[src]
fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<Fr, __D::Error>
[src]
Deserialize a value using a Decoder
.
impl Encodable for Fr
[src]
fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>
[src]
Serialize a value using an Encoder
.
impl Add<Fr> for Fr
[src]
type Output = Fr
The resulting type after applying the +
operator.
fn add(self, other: Fr) -> Fr
[src]
Performs the +
operation.
impl Sub<Fr> for Fr
[src]
type Output = Fr
The resulting type after applying the -
operator.
fn sub(self, other: Fr) -> Fr
[src]
Performs the -
operation.
impl Neg for Fr
[src]
type Output = Fr
The resulting type after applying the -
operator.
fn neg(self) -> Fr
[src]
Performs the unary -
operation.