[][src]Struct witnet_bn::AffineG2

#[repr(C)]pub struct AffineG2(_);

Methods

impl AffineG2[src]

pub fn new(x: Fq2, y: Fq2) -> Result<Self, GroupError>[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 from_jacobian(g2: G2) -> Option<Self>[src]

Trait Implementations

impl Clone for AffineG2[src]

impl Copy for AffineG2[src]

impl Decodable for AffineG2[src]

impl Encodable for AffineG2[src]

impl Eq for AffineG2[src]

impl From<AffineG2> for G2[src]

impl PartialEq<AffineG2> for AffineG2[src]

impl StructuralEq for AffineG2[src]

impl StructuralPartialEq for AffineG2[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.