pub struct SizedConstraintSet<F: Field> {
pub n_vars: usize,
pub oracle_ids: Vec<OracleId>,
pub constraints: Vec<Constraint<F>>,
}
Expand description
Constraint set is a group of constraints that operate over the same set of oracle-identified multilinears.
The difference from the ConstraintSet
is that the latter is for the public API and this
one should is supposed to be used within the core only.
Fields§
§n_vars: usize
§oracle_ids: Vec<OracleId>
§constraints: Vec<Constraint<F>>
Implementations§
Source§impl<F: Field> SizedConstraintSet<F>
impl<F: Field> SizedConstraintSet<F>
pub fn new(n_vars: usize, u: ConstraintSet<F>) -> Self
Trait Implementations§
Source§impl<F: Clone + Field> Clone for SizedConstraintSet<F>
impl<F: Clone + Field> Clone for SizedConstraintSet<F>
Source§fn clone(&self) -> SizedConstraintSet<F>
fn clone(&self) -> SizedConstraintSet<F>
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<F: Field + DeserializeBytes> DeserializeBytes for SizedConstraintSet<F>
impl<F: Field + DeserializeBytes> DeserializeBytes for SizedConstraintSet<F>
fn deserialize(
read_buf: impl Buf,
mode: SerializationMode,
) -> Result<Self, SerializationError>where
Self: Sized,
Source§impl<F: Field + SerializeBytes> SerializeBytes for SizedConstraintSet<F>
impl<F: Field + SerializeBytes> SerializeBytes for SizedConstraintSet<F>
fn serialize( &self, write_buf: impl BufMut, mode: SerializationMode, ) -> Result<(), SerializationError>
Auto Trait Implementations§
impl<F> Freeze for SizedConstraintSet<F>
impl<F> RefUnwindSafe for SizedConstraintSet<F>
impl<F> Send for SizedConstraintSet<F>
impl<F> Sync for SizedConstraintSet<F>
impl<F> Unpin for SizedConstraintSet<F>
impl<F> UnwindSafe for SizedConstraintSet<F>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more