pub struct GeneratorG2(/* private fields */);
Expand description
Wrapper for G2
Implementations§
Source§impl GeneratorG2
impl GeneratorG2
Sourcepub fn to_bytes_compressed_form(&self) -> [u8; 96]
pub fn to_bytes_compressed_form(&self) -> [u8; 96]
Convert to raw bytes compressed form
Sourcepub fn to_bytes_uncompressed_form(&self) -> [u8; 192]
pub fn to_bytes_uncompressed_form(&self) -> [u8; 192]
Convert to raw bytes uncompressed form
Trait Implementations§
Source§impl AsRef<G2> for GeneratorG2
impl AsRef<G2> for GeneratorG2
Source§impl Clone for GeneratorG2
impl Clone for GeneratorG2
Source§fn clone(&self) -> GeneratorG2
fn clone(&self) -> GeneratorG2
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for GeneratorG2
impl Debug for GeneratorG2
Source§impl Default for GeneratorG2
impl Default for GeneratorG2
Source§impl<'a> Deserialize<'a> for GeneratorG2
impl<'a> Deserialize<'a> for GeneratorG2
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'a>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'a>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for GeneratorG2
impl Display for GeneratorG2
Source§impl From<&G2> for GeneratorG2
impl From<&G2> for GeneratorG2
Source§impl From<G2> for GeneratorG2
impl From<G2> for GeneratorG2
Source§impl HashElem for GeneratorG2
impl HashElem for GeneratorG2
Source§impl PartialEq for GeneratorG2
impl PartialEq for GeneratorG2
Source§impl Serialize for GeneratorG2
impl Serialize for GeneratorG2
Source§impl TryFrom<&[u8]> for GeneratorG2
impl TryFrom<&[u8]> for GeneratorG2
impl Copy for GeneratorG2
impl Eq for GeneratorG2
impl StructuralPartialEq for GeneratorG2
Auto Trait Implementations§
impl Freeze for GeneratorG2
impl RefUnwindSafe for GeneratorG2
impl Send for GeneratorG2
impl Sync for GeneratorG2
impl Unpin for GeneratorG2
impl UnwindSafe for GeneratorG2
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more