Struct proof_system::statement::Statements
source · [−]pub struct Statements<E, G>(pub Vec<Statement<E, G>>)
where
E: PairingEngine,
G: AffineCurve;Expand description
A collection of statements
Tuple Fields
0: Vec<Statement<E, G>>Implementations
Trait Implementations
sourceimpl<E, G> CanonicalDeserialize for Statements<E, G>where
E: PairingEngine,
G: AffineCurve,
impl<E, G> CanonicalDeserialize for Statements<E, G>where
E: PairingEngine,
G: AffineCurve,
sourcefn deserialize<R: Read>(reader: R) -> Result<Self, SerializationError>
fn deserialize<R: Read>(reader: R) -> Result<Self, SerializationError>
Reads
Self from reader.sourcefn deserialize_uncompressed<R: Read>(
reader: R
) -> Result<Self, SerializationError>
fn deserialize_uncompressed<R: Read>(
reader: R
) -> Result<Self, SerializationError>
Reads
Self from reader without compression.sourcefn deserialize_unchecked<R: Read>(reader: R) -> Result<Self, SerializationError>
fn deserialize_unchecked<R: Read>(reader: R) -> Result<Self, SerializationError>
Reads
self from reader without compression, and without performing
validity checks. Should be used only when the input is trusted. Read moresourceimpl<E, G> CanonicalSerialize for Statements<E, G>where
E: PairingEngine,
G: AffineCurve,
impl<E, G> CanonicalSerialize for Statements<E, G>where
E: PairingEngine,
G: AffineCurve,
sourcefn serialize<W: Write>(&self, writer: W) -> Result<(), SerializationError>
fn serialize<W: Write>(&self, writer: W) -> Result<(), SerializationError>
Serializes
self into writer.
It is left up to a particular type for how it strikes the
serialization efficiency vs compression tradeoff.
For standard types (e.g. bool, lengths, etc.) typically an uncompressed
form is used, whereas for algebraic types compressed forms are used. Read morefn serialized_size(&self) -> usize
sourcefn serialize_uncompressed<W: Write>(
&self,
writer: W
) -> Result<(), SerializationError>
fn serialize_uncompressed<W: Write>(
&self,
writer: W
) -> Result<(), SerializationError>
Serializes
self into writer without compression.sourcefn serialize_unchecked<W: Write>(
&self,
writer: W
) -> Result<(), SerializationError>
fn serialize_unchecked<W: Write>(
&self,
writer: W
) -> Result<(), SerializationError>
Serializes
self into writer without compression, and without
performing validity checks. Should be used only when there is no
danger of adversarial manipulation of the output. Read morefn uncompressed_size(&self) -> usize
sourceimpl<E: Clone, G: Clone> Clone for Statements<E, G>where
E: PairingEngine,
G: AffineCurve,
impl<E: Clone, G: Clone> Clone for Statements<E, G>where
E: PairingEngine,
G: AffineCurve,
sourcefn clone(&self) -> Statements<E, G>
fn clone(&self) -> Statements<E, G>
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 moresourceimpl<E: Debug, G: Debug> Debug for Statements<E, G>where
E: PairingEngine,
G: AffineCurve,
impl<E: Debug, G: Debug> Debug for Statements<E, G>where
E: PairingEngine,
G: AffineCurve,
sourceimpl<'de, E, G> Deserialize<'de> for Statements<E, G>where
E: PairingEngine,
G: AffineCurve,
impl<'de, E, G> Deserialize<'de> for Statements<E, G>where
E: PairingEngine,
G: AffineCurve,
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<E: PartialEq, G: PartialEq> PartialEq<Statements<E, G>> for Statements<E, G>where
E: PairingEngine,
G: AffineCurve,
impl<E: PartialEq, G: PartialEq> PartialEq<Statements<E, G>> for Statements<E, G>where
E: PairingEngine,
G: AffineCurve,
sourcefn eq(&self, other: &Statements<E, G>) -> bool
fn eq(&self, other: &Statements<E, G>) -> bool
sourceimpl<E, G> Serialize for Statements<E, G>where
E: PairingEngine,
G: AffineCurve,
impl<E, G> Serialize for Statements<E, G>where
E: PairingEngine,
G: AffineCurve,
impl<E, G> StructuralPartialEq for Statements<E, G>where
E: PairingEngine,
G: AffineCurve,
Auto Trait Implementations
impl<E, G> RefUnwindSafe for Statements<E, G>where
G: RefUnwindSafe,
<E as PairingEngine>::Fr: RefUnwindSafe,
<E as PairingEngine>::G1Affine: RefUnwindSafe,
<E as PairingEngine>::G2Affine: RefUnwindSafe,
impl<E, G> Send for Statements<E, G>
impl<E, G> Sync for Statements<E, G>
impl<E, G> Unpin for Statements<E, G>where
G: Unpin,
<E as PairingEngine>::Fr: Unpin,
<E as PairingEngine>::G1Affine: Unpin,
<E as PairingEngine>::G2Affine: Unpin,
impl<E, G> UnwindSafe for Statements<E, G>where
G: UnwindSafe,
<E as PairingEngine>::Fr: UnwindSafe + RefUnwindSafe,
<E as PairingEngine>::G1Affine: UnwindSafe,
<E as PairingEngine>::G2Affine: UnwindSafe,
Blanket Implementations
impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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
sourceimpl<T> CanonicalSerializeHashExt for Twhere
T: CanonicalSerialize,
impl<T> CanonicalSerializeHashExt for Twhere
T: CanonicalSerialize,
fn hash<H>(&self) -> GenericArray<u8, <H as Digest>::OutputSize>where
H: Digest,
fn hash_uncompressed<H>(&self) -> GenericArray<u8, <H as Digest>::OutputSize>where
H: Digest,
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Upcastable for Twhere
T: 'static + Any + Send + Sync,
impl<T> Upcastable for Twhere
T: 'static + Any + Send + Sync,
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
upcast ref
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
upcast mut ref