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