Struct indy_crypto::pair::PointG2
[−]
[src]
pub struct PointG2 { /* fields omitted */ }
Methods
impl PointG2
[src]
fn new() -> Result<PointG2, IndyCryptoError>
[src]
Creates new random PointG2
fn new_inf() -> Result<PointG2, IndyCryptoError>
[src]
Creates new infinity PointG2
fn add(&self, q: &PointG2) -> Result<PointG2, IndyCryptoError>
[src]
PointG2 * PointG2
fn sub(&self, q: &PointG2) -> Result<PointG2, IndyCryptoError>
[src]
PointG2 / PointG2
fn mul(&self, e: &GroupOrderElement) -> Result<PointG2, IndyCryptoError>
[src]
PointG2 ^ GroupOrderElement
fn to_string(&self) -> Result<String, IndyCryptoError>
[src]
fn from_string(str: &str) -> Result<PointG2, IndyCryptoError>
[src]
fn to_bytes(&self) -> Result<Vec<u8>, IndyCryptoError>
[src]
fn from_bytes(b: &[u8]) -> Result<PointG2, IndyCryptoError>
[src]
Trait Implementations
impl Copy for PointG2
[src]
impl Clone for PointG2
[src]
fn clone(&self) -> PointG2
[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 PointG2
[src]
fn eq(&self, __arg_0: &PointG2) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &PointG2) -> bool
[src]
This method tests for !=
.
impl Debug for PointG2
[src]
impl Serialize for PointG2
[src]
fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where
S: Serializer,
[src]
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<'a> Deserialize<'a> for PointG2
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'a>,
[src]
D: Deserializer<'a>,
Deserialize this value from the given Serde deserializer. Read more