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>
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 G1Prepared<P>
impl<P: Bls12Parameters> CanonicalSerialize for G1Prepared<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 G1Prepared<P> where
P: Bls12Parameters,
impl<P: Bls12Parameters> Clone for G1Prepared<P> where
P: Bls12Parameters,
sourceimpl<P: Bls12Parameters> Debug for G1Prepared<P> where
P: Bls12Parameters,
impl<P: Bls12Parameters> Debug for G1Prepared<P> where
P: Bls12Parameters,
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: Bls12Parameters> PartialEq<G1Prepared<P>> for G1Prepared<P> where
P: Bls12Parameters,
impl<P: Bls12Parameters> PartialEq<G1Prepared<P>> for G1Prepared<P> where
P: Bls12Parameters,
sourceimpl<P: Bls12Parameters> ToBytes for G1Prepared<P>
impl<P: Bls12Parameters> ToBytes for G1Prepared<P>
impl<P: Bls12Parameters> Eq for G1Prepared<P> where
P: Bls12Parameters,
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 · 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