Struct snarkvm_curves::templates::bls12::g1::G1Prepared
source · [−]pub struct G1Prepared<P: Bls12Parameters>(pub G1Affine<P>);
Tuple Fields
0: G1Affine<P>
Implementations
sourceimpl<P: Bls12Parameters> G1Prepared<P>
impl<P: Bls12Parameters> G1Prepared<P>
Trait Implementations
sourceimpl<P: Bls12Parameters> CanonicalDeserialize for G1Prepared<P>
impl<P: Bls12Parameters> CanonicalDeserialize for G1Prepared<P>
fn deserialize_with_mode<R: Read>(
reader: R,
compress: Compress,
validate: Validate
) -> Result<Self, SerializationError>
fn deserialize_compressed<R>(reader: R) -> Result<Self, SerializationError> where
R: Read,
fn deserialize_compressed_unchecked<R>(
reader: R
) -> Result<Self, SerializationError> where
R: Read,
fn deserialize_uncompressed<R>(reader: R) -> Result<Self, SerializationError> where
R: Read,
fn deserialize_uncompressed_unchecked<R>(
reader: R
) -> Result<Self, SerializationError> where
R: Read,
sourceimpl<P: Bls12Parameters> CanonicalSerialize for G1Prepared<P>
impl<P: Bls12Parameters> CanonicalSerialize for G1Prepared<P>
fn serialize_with_mode<W: Write>(
&self,
writer: W,
compress: Compress
) -> Result<(), SerializationError>
fn serialized_size(&self, compress: Compress) -> usize
fn serialize_compressed<W>(&self, writer: W) -> Result<(), SerializationError> where
W: Write,
fn compressed_size(&self) -> usize
fn serialize_uncompressed<W>(&self, writer: W) -> Result<(), SerializationError> where
W: Write,
fn uncompressed_size(&self) -> usize
sourceimpl<P: Clone + Bls12Parameters> Clone for G1Prepared<P>
impl<P: Clone + Bls12Parameters> Clone for G1Prepared<P>
sourcefn clone(&self) -> G1Prepared<P>
fn clone(&self) -> G1Prepared<P>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<P: Debug + Bls12Parameters> Debug for G1Prepared<P>
impl<P: Debug + Bls12Parameters> Debug for G1Prepared<P>
sourceimpl<P: Bls12Parameters> Default for G1Prepared<P>
impl<P: Bls12Parameters> Default for G1Prepared<P>
sourceimpl<P: Bls12Parameters> FromBytes for G1Prepared<P>
impl<P: Bls12Parameters> FromBytes for G1Prepared<P>
sourceimpl<P: Hash + Bls12Parameters> Hash for G1Prepared<P>
impl<P: Hash + Bls12Parameters> Hash for G1Prepared<P>
sourceimpl<P: PartialEq + Bls12Parameters> PartialEq<G1Prepared<P>> for G1Prepared<P>
impl<P: PartialEq + Bls12Parameters> PartialEq<G1Prepared<P>> for G1Prepared<P>
sourcefn eq(&self, other: &G1Prepared<P>) -> bool
fn eq(&self, other: &G1Prepared<P>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl<P: Bls12Parameters> ToBytes for G1Prepared<P>
impl<P: Bls12Parameters> ToBytes for G1Prepared<P>
sourceimpl<P: Bls12Parameters> Valid for G1Prepared<P>
impl<P: Bls12Parameters> Valid for G1Prepared<P>
fn check(&self) -> Result<(), SerializationError>
fn batch_check<'a>(
batch: impl Iterator<Item = &'a Self> + Send
) -> Result<(), SerializationError> where
Self: 'a,
impl<P: Eq + Bls12Parameters> Eq for G1Prepared<P>
impl<P: Bls12Parameters> StructuralEq for G1Prepared<P>
impl<P: Bls12Parameters> StructuralPartialEq for G1Prepared<P>
Auto Trait Implementations
impl<P> RefUnwindSafe for G1Prepared<P> where
<P as Bls12Parameters>::Fp: RefUnwindSafe,
impl<P> Send for G1Prepared<P>
impl<P> Sync for G1Prepared<P>
impl<P> Unpin for G1Prepared<P> where
<P as Bls12Parameters>::Fp: Unpin,
impl<P> UnwindSafe for G1Prepared<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 · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more