[−][src]Struct substrate_bn::G2
Implementations
impl G2[src]
pub fn new(x: Fq2, y: Fq2, z: Fq2) -> Self[src]
pub fn x(&self) -> Fq2[src]
pub fn set_x(&mut self, x: Fq2)[src]
pub fn y(&self) -> Fq2[src]
pub fn set_y(&mut self, y: Fq2)[src]
pub fn z(&self) -> Fq2[src]
pub fn set_z(&mut self, z: Fq2)[src]
pub fn b() -> Fq2[src]
pub fn from_compressed(bytes: &[u8]) -> Result<Self, CurveError>[src]
Trait Implementations
impl Add<G2> for G2[src]
type Output = G2
The resulting type after applying the + operator.
fn add(self, other: G2) -> G2[src]
impl Clone for G2[src]
impl Copy for G2[src]
impl Debug for G2[src]
impl Decodable for G2[src]
impl Encodable for G2[src]
impl Eq for G2[src]
impl From<AffineG2> for G2[src]
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 Mul<Fr> for G2[src]
type Output = G2
The resulting type after applying the * operator.
fn mul(self, other: Fr) -> G2[src]
impl Neg for G2[src]
impl PartialEq<G2> for G2[src]
impl StructuralEq for G2[src]
impl StructuralPartialEq for G2[src]
impl Sub<G2> for G2[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,