Struct ark_test_curves::bls12::G1Prepared
source · pub struct G1Prepared<P>(pub Affine<<P as Bls12Config>::G1Config>)
where
P: Bls12Config;
Tuple Fields§
§0: Affine<<P as Bls12Config>::G1Config>
Implementations§
source§impl<P> G1Prepared<P>where
P: Bls12Config,
impl<P> G1Prepared<P>where P: Bls12Config,
Trait Implementations§
source§impl<P> CanonicalDeserialize for G1Prepared<P>where
P: Bls12Config,
impl<P> CanonicalDeserialize for G1Prepared<P>where P: Bls12Config,
source§fn deserialize_with_mode<R>(
reader: R,
compress: Compress,
validate: Validate
) -> Result<G1Prepared<P>, SerializationError>where
R: Read,
fn deserialize_with_mode<R>( reader: R, compress: Compress, validate: Validate ) -> Result<G1Prepared<P>, SerializationError>where R: Read,
The general deserialize method that takes in customization flags.
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,
source§impl<P> CanonicalSerialize for G1Prepared<P>where
P: Bls12Config,
impl<P> CanonicalSerialize for G1Prepared<P>where P: Bls12Config,
source§fn serialize_with_mode<W>(
&self,
writer: W,
compress: Compress
) -> Result<(), SerializationError>where
W: Write,
fn serialize_with_mode<W>( &self, writer: W, compress: Compress ) -> Result<(), SerializationError>where W: Write,
The general serialize method that takes in customization flags.
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
source§impl<P> Clone for G1Prepared<P>where
P: Bls12Config,
impl<P> Clone for G1Prepared<P>where P: Bls12Config,
source§fn clone(&self) -> G1Prepared<P>
fn clone(&self) -> G1Prepared<P>
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<P> Debug for G1Prepared<P>where
P: Bls12Config,
impl<P> Debug for G1Prepared<P>where P: Bls12Config,
source§impl<P> Default for G1Prepared<P>where
P: Bls12Config,
impl<P> Default for G1Prepared<P>where P: Bls12Config,
source§fn default() -> G1Prepared<P>
fn default() -> G1Prepared<P>
Returns the “default value” for a type. Read more
source§impl<'a, P> From<&'a Affine<<P as Bls12Config>::G1Config>> for G1Prepared<P>where
P: Bls12Config,
impl<'a, P> From<&'a Affine<<P as Bls12Config>::G1Config>> for G1Prepared<P>where P: Bls12Config,
source§fn from(other: &'a Affine<<P as Bls12Config>::G1Config>) -> G1Prepared<P>
fn from(other: &'a Affine<<P as Bls12Config>::G1Config>) -> G1Prepared<P>
Converts to this type from the input type.
source§impl<'a, P> From<&'a Projective<<P as Bls12Config>::G1Config>> for G1Prepared<P>where
P: Bls12Config,
impl<'a, P> From<&'a Projective<<P as Bls12Config>::G1Config>> for G1Prepared<P>where P: Bls12Config,
source§fn from(q: &'a Projective<<P as Bls12Config>::G1Config>) -> G1Prepared<P>
fn from(q: &'a Projective<<P as Bls12Config>::G1Config>) -> G1Prepared<P>
Converts to this type from the input type.
source§impl<P> From<Affine<<P as Bls12Config>::G1Config>> for G1Prepared<P>where
P: Bls12Config,
impl<P> From<Affine<<P as Bls12Config>::G1Config>> for G1Prepared<P>where P: Bls12Config,
source§fn from(other: Affine<<P as Bls12Config>::G1Config>) -> G1Prepared<P>
fn from(other: Affine<<P as Bls12Config>::G1Config>) -> G1Prepared<P>
Converts to this type from the input type.
source§impl<P> From<Projective<<P as Bls12Config>::G1Config>> for G1Prepared<P>where
P: Bls12Config,
impl<P> From<Projective<<P as Bls12Config>::G1Config>> for G1Prepared<P>where P: Bls12Config,
source§fn from(q: Projective<<P as Bls12Config>::G1Config>) -> G1Prepared<P>
fn from(q: Projective<<P as Bls12Config>::G1Config>) -> G1Prepared<P>
Converts to this type from the input type.
source§impl<P> PartialEq<G1Prepared<P>> for G1Prepared<P>where
P: Bls12Config,
impl<P> PartialEq<G1Prepared<P>> for G1Prepared<P>where P: Bls12Config,
source§fn 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 ==
.source§impl<P> Valid for G1Prepared<P>where
P: Bls12Config,
impl<P> Valid for G1Prepared<P>where P: Bls12Config,
fn check(&self) -> Result<(), SerializationError>
fn batch_check<'a>( batch: impl Iterator<Item = &'a G1Prepared<P>> + Send ) -> Result<(), SerializationError>where G1Prepared<P>: 'a,
impl<P> Eq for G1Prepared<P>where P: Bls12Config,
Auto Trait Implementations§
impl<P> RefUnwindSafe for G1Prepared<P>where <P as Bls12Config>::Fp: RefUnwindSafe,
impl<P> Send for G1Prepared<P>
impl<P> Sync for G1Prepared<P>
impl<P> Unpin for G1Prepared<P>where <P as Bls12Config>::Fp: Unpin,
impl<P> UnwindSafe for G1Prepared<P>where <P as Bls12Config>::Fp: UnwindSafe,
Blanket Implementations§
§impl<T> CanonicalSerializeHashExt for Twhere
T: CanonicalSerialize,
impl<T> CanonicalSerializeHashExt for Twhere T: CanonicalSerialize,
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more