Struct snarkvm_curves::templates::bls12::g2::G2Prepared
source · [−]pub struct G2Prepared<P: Bls12Parameters> {
pub ell_coeffs: Vec<(Fp2<P::Fp2Params>, Fp2<P::Fp2Params>, Fp2<P::Fp2Params>)>,
pub infinity: bool,
}
Fields
ell_coeffs: Vec<(Fp2<P::Fp2Params>, Fp2<P::Fp2Params>, Fp2<P::Fp2Params>)>
infinity: bool
Implementations
sourceimpl<P: Bls12Parameters> G2Prepared<P>
impl<P: Bls12Parameters> G2Prepared<P>
Trait Implementations
sourceimpl<P: Bls12Parameters> CanonicalDeserialize for G2Prepared<P>
impl<P: Bls12Parameters> CanonicalDeserialize for G2Prepared<P>
sourcefn deserialize<R: Read>(reader: &mut R) -> Result<Self, SerializationError>
fn deserialize<R: Read>(reader: &mut R) -> Result<Self, SerializationError>
Reads Self
from reader
.
sourcefn deserialize_uncompressed<R: Read>(
reader: &mut R
) -> Result<Self, SerializationError>
fn deserialize_uncompressed<R: Read>(
reader: &mut R
) -> Result<Self, SerializationError>
Reads Self
from reader
without compression.
sourceimpl<P: Bls12Parameters> CanonicalSerialize for G2Prepared<P>
impl<P: Bls12Parameters> CanonicalSerialize for G2Prepared<P>
sourcefn serialize<W: Write>(&self, writer: &mut W) -> Result<(), SerializationError>
fn serialize<W: Write>(&self, writer: &mut W) -> Result<(), SerializationError>
Serializes self
into writer
.
fn serialized_size(&self) -> usize
sourcefn serialize_uncompressed<W: Write>(
&self,
writer: &mut W
) -> Result<(), SerializationError>
fn serialize_uncompressed<W: Write>(
&self,
writer: &mut W
) -> Result<(), SerializationError>
Serializes self
into writer
without compression.
fn uncompressed_size(&self) -> usize
sourceimpl<P: Bls12Parameters> Clone for G2Prepared<P> where
P: Bls12Parameters,
impl<P: Bls12Parameters> Clone for G2Prepared<P> where
P: Bls12Parameters,
sourceimpl<P: Bls12Parameters> Debug for G2Prepared<P> where
P: Bls12Parameters,
impl<P: Bls12Parameters> Debug for G2Prepared<P> where
P: Bls12Parameters,
sourceimpl<P: Bls12Parameters> Default for G2Prepared<P>
impl<P: Bls12Parameters> Default for G2Prepared<P>
sourceimpl<P: Bls12Parameters> FromBytes for G2Prepared<P>
impl<P: Bls12Parameters> FromBytes for G2Prepared<P>
sourceimpl<P: Bls12Parameters> PartialEq<G2Prepared<P>> for G2Prepared<P> where
P: Bls12Parameters,
impl<P: Bls12Parameters> PartialEq<G2Prepared<P>> for G2Prepared<P> where
P: Bls12Parameters,
sourceimpl<P: Bls12Parameters> ToBytes for G2Prepared<P>
impl<P: Bls12Parameters> ToBytes for G2Prepared<P>
impl<P: Bls12Parameters> Eq for G2Prepared<P> where
P: Bls12Parameters,
Auto Trait Implementations
impl<P> RefUnwindSafe for G2Prepared<P> where
<P as Bls12Parameters>::Fp: RefUnwindSafe,
impl<P> Send for G2Prepared<P>
impl<P> Sync for G2Prepared<P>
impl<P> Unpin for G2Prepared<P> where
<P as Bls12Parameters>::Fp: Unpin,
impl<P> UnwindSafe for G2Prepared<P> where
<P as Bls12Parameters>::Fp: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more