[][src]Struct mcl_rust::G1

#[repr(C)]
pub struct G1 {
    pub x: Fp,
    pub y: Fp,
    pub z: Fp,
}

Fields

x: Fpy: Fpz: Fp

Methods

impl G1[src]

pub fn zero() -> G1[src]

pub unsafe fn uninit() -> G1[src]

pub fn clear(&mut self)[src]

pub fn is_zero(&self) -> bool[src]

impl G1[src]

pub fn is_valid(&self) -> bool[src]

impl G1[src]

pub fn deserialize(&mut self, buf: &[u8]) -> bool[src]

pub fn serialize(&self) -> Vec<u8>[src]

impl G1[src]

pub fn from_str(s: &str, base: i32) -> Option<G1>[src]

pub fn set_str(&mut self, s: &str, base: i32) -> bool[src]

pub fn get_str(&self, io_mode: i32) -> String[src]

impl G1[src]

pub fn add(z: &mut G1, x: &G1, y: &G1)[src]

pub fn sub(z: &mut G1, x: &G1, y: &G1)[src]

pub fn neg(y: &mut G1, x: &G1)[src]

impl G1[src]

pub fn dbl(y: &mut G1, x: &G1)[src]

pub fn mul(z: &mut G1, x: &G1, y: &Fr)[src]

pub fn normalize(y: &mut G1, x: &G1)[src]

pub fn set_hash_of(&mut self, buf: &[u8]) -> bool[src]

Trait Implementations

impl Clone for G1[src]

impl Default for G1[src]

impl PartialEq<G1> for G1[src]

impl Debug for G1[src]

impl<'a> Sub<&'a G1> for &'a G1[src]

type Output = G1

The resulting type after applying the - operator.

impl<'a> Add<&'a G1> for &'a G1[src]

type Output = G1

The resulting type after applying the + operator.

impl<'a> AddAssign<&'a G1> for G1[src]

impl<'a> SubAssign<&'a G1> for G1[src]

Auto Trait Implementations

impl Send for G1

impl Sync for G1

impl Unpin for G1

impl UnwindSafe for G1

impl RefUnwindSafe for G1

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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