Struct bn::Fq
[−]
[src]
#[repr(C)]pub struct Fq(_);
Methods
impl Fq
[src]
fn zero() -> Self
[src]
fn one() -> Self
[src]
fn random<R: Rng>(rng: &mut R) -> Self
[src]
fn pow(&self, exp: Fq) -> 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]) -> Fq
[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 Fq
[src]
impl Clone for Fq
[src]
fn clone(&self) -> Fq
[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 Fq
[src]
impl PartialEq for Fq
[src]
fn eq(&self, __arg_0: &Fq) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Fq) -> bool
[src]
This method tests for !=
.
impl Eq for Fq
[src]
impl Decodable for Fq
[src]
fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<Fq, __D::Error>
[src]
Deserialize a value using a Decoder
.
impl Encodable for Fq
[src]
fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>
[src]
Serialize a value using an Encoder
.
impl Add<Fq> for Fq
[src]
type Output = Fq
The resulting type after applying the +
operator.
fn add(self, other: Fq) -> Fq
[src]
Performs the +
operation.
impl Sub<Fq> for Fq
[src]
type Output = Fq
The resulting type after applying the -
operator.
fn sub(self, other: Fq) -> Fq
[src]
Performs the -
operation.
impl Neg for Fq
[src]
type Output = Fq
The resulting type after applying the -
operator.
fn neg(self) -> Fq
[src]
Performs the unary -
operation.