Struct bellperson::bls::G2Affine [−][src]
pub struct G2Affine { /* fields omitted */ }
Trait Implementations
impl CurveAffine for G2Affine
[src]
impl CurveAffine for G2Affine
[src]type Engine = Bls12
type Scalar = Fr
type Base = Fq2
type Projective = G2
type Uncompressed = G2Uncompressed
type Compressed = G2Compressed
pub fn is_zero(&self) -> bool
[src]
pub fn is_zero(&self) -> bool
[src]Determines if this point represents the point at infinity; the additive identity. Read more
pub fn mul<S>(&self, by: S) -> G2 where
S: Into<<<G2Affine as CurveAffine>::Scalar as PrimeField>::Repr>,
[src]
pub fn mul<S>(&self, by: S) -> G2 where
S: Into<<<G2Affine as CurveAffine>::Scalar as PrimeField>::Repr>,
[src]Performs scalar multiplication of this element with mixed addition.
pub fn into_projective(&self) -> G2
[src]
pub fn into_projective(&self) -> G2
[src]Converts this element into its affine representation.
fn into_compressed(&self) -> Self::Compressed
[src]
fn into_compressed(&self) -> Self::Compressed
[src]Converts this element into its compressed encoding, so long as it’s not the point at infinity. Read more
fn into_uncompressed(&self) -> Self::Uncompressed
[src]
fn into_uncompressed(&self) -> Self::Uncompressed
[src]Converts this element into its uncompressed encoding, so long as it’s not the point at infinity. Read more
impl<'de> Deserialize<'de> for G2Affine
[src]
impl<'de> Deserialize<'de> for G2Affine
[src]pub fn deserialize<D>(d: D) -> Result<G2Affine, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
[src]
pub fn deserialize<D>(d: D) -> Result<G2Affine, <D as Deserializer<'de>>::Error> where
D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl PairingCurveAffine for G2Affine
[src]
impl PairingCurveAffine for G2Affine
[src]type Prepared = G2Prepared
type Pair = G1Affine
type PairingResult = Fq12
pub fn prepare(&self) -> <G2Affine as PairingCurveAffine>::Prepared
[src]
pub fn prepare(&self) -> <G2Affine as PairingCurveAffine>::Prepared
[src]Prepares this element for pairing purposes.
pub fn pairing_with(
&self,
other: &<G2Affine as PairingCurveAffine>::Pair
) -> <G2Affine as PairingCurveAffine>::PairingResult
[src]
pub fn pairing_with(
&self,
other: &<G2Affine as PairingCurveAffine>::Pair
) -> <G2Affine as PairingCurveAffine>::PairingResult
[src]Perform a pairing
impl Serialize for G2Affine
[src]
impl Serialize for G2Affine
[src]pub fn serialize<S>(
&self,
s: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
[src]
pub fn serialize<S>(
&self,
s: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error> where
S: Serializer,
[src]Serialize this value into the given Serde serializer. Read more
impl Copy for G2Affine
[src]
impl Eq for G2Affine
[src]
impl StructuralEq for G2Affine
[src]
impl StructuralPartialEq for G2Affine
[src]
Auto Trait Implementations
impl RefUnwindSafe for G2Affine
impl Send for G2Affine
impl Sync for G2Affine
impl Unpin for G2Affine
impl UnwindSafe for G2Affine
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,