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