[][src]Struct witnet_bn::G1

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

Methods

impl G1[src]

pub fn new(x: Fq, y: Fq, z: Fq) -> Self[src]

pub fn x(&self) -> Fq[src]

pub fn set_x(&mut self, x: Fq)[src]

pub fn y(&self) -> Fq[src]

pub fn set_y(&mut self, y: Fq)[src]

pub fn z(&self) -> Fq[src]

pub fn set_z(&mut self, z: Fq)[src]

pub fn b() -> Fq[src]

pub fn from_compressed(bytes: &[u8]) -> Result<Self, CurveError>[src]

Trait Implementations

impl Add<G1> for G1[src]

type Output = G1

The resulting type after applying the + operator.

impl Clone for G1[src]

impl Copy for G1[src]

impl Debug for G1[src]

impl Decodable for G1[src]

impl Encodable for G1[src]

impl Eq for G1[src]

impl From<AffineG1> for G1[src]

impl Group for G1[src]

impl Mul<Fr> for G1[src]

type Output = G1

The resulting type after applying the * operator.

impl Neg for G1[src]

type Output = G1

The resulting type after applying the - operator.

impl PartialEq<G1> for G1[src]

impl StructuralEq for G1[src]

impl StructuralPartialEq for G1[src]

impl Sub<G1> for G1[src]

type Output = G1

The resulting type after applying the - operator.

Auto Trait Implementations

impl RefUnwindSafe for G1

impl Send for G1

impl Sync for G1

impl Unpin for G1

impl UnwindSafe for G1

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.