Struct binius_core::oracle::Constraint
source · pub struct Constraint<P: PackedField> {
pub composition: TypeErasedComposition<P>,
pub predicate: ConstraintPredicate<P::Scalar>,
}
Expand description
Constraint is a type erased composition along with a predicate on its values on the boolean hypercube
Fields§
§composition: TypeErasedComposition<P>
§predicate: ConstraintPredicate<P::Scalar>
Trait Implementations§
source§impl<P: Clone + PackedField> Clone for Constraint<P>
impl<P: Clone + PackedField> Clone for Constraint<P>
source§fn clone(&self) -> Constraint<P>
fn clone(&self) -> Constraint<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 moreAuto Trait Implementations§
impl<P> Freeze for Constraint<P>where
P: Zeroable + Sync + Send + Product + Sum + MulAssign<<P as PackedField>::Scalar> + SubAssign<<P as PackedField>::Scalar> + AddAssign<<P as PackedField>::Scalar> + Mul<<P as PackedField>::Scalar, Output = P, Output = P> + Sub<<P as PackedField>::Scalar, Output = P, Output = P> + Add<<P as PackedField>::Scalar, Output = P, Output = P> + MulAssign + SubAssign + AddAssign + Mul + Sub + Add + Eq + PartialEq + Copy + Clone + Debug + Default + 'static,
<P as PackedField>::Scalar: Freeze,
impl<P> !RefUnwindSafe for Constraint<P>
impl<P> Send for Constraint<P>where
P: Zeroable + Sync + Send + Product + Sum + MulAssign<<P as PackedField>::Scalar> + SubAssign<<P as PackedField>::Scalar> + AddAssign<<P as PackedField>::Scalar> + Mul<<P as PackedField>::Scalar, Output = P, Output = P> + Sub<<P as PackedField>::Scalar, Output = P, Output = P> + Add<<P as PackedField>::Scalar, Output = P, Output = P> + MulAssign + SubAssign + AddAssign + Mul + Sub + Add + Eq + PartialEq + Copy + Clone + Debug + Default + 'static,
impl<P> Sync for Constraint<P>where
P: Zeroable + Sync + Send + Product + Sum + MulAssign<<P as PackedField>::Scalar> + SubAssign<<P as PackedField>::Scalar> + AddAssign<<P as PackedField>::Scalar> + Mul<<P as PackedField>::Scalar, Output = P, Output = P> + Sub<<P as PackedField>::Scalar, Output = P, Output = P> + Add<<P as PackedField>::Scalar, Output = P, Output = P> + MulAssign + SubAssign + AddAssign + Mul + Sub + Add + Eq + PartialEq + Copy + Clone + Debug + Default + 'static,
impl<P> Unpin for Constraint<P>where
P: Zeroable + Sync + Send + Product + Sum + MulAssign<<P as PackedField>::Scalar> + SubAssign<<P as PackedField>::Scalar> + AddAssign<<P as PackedField>::Scalar> + Mul<<P as PackedField>::Scalar, Output = P, Output = P> + Sub<<P as PackedField>::Scalar, Output = P, Output = P> + Add<<P as PackedField>::Scalar, Output = P, Output = P> + MulAssign + SubAssign + AddAssign + Mul + Sub + Add + Eq + PartialEq + Copy + Clone + Debug + Default + 'static,
<P as PackedField>::Scalar: Unpin,
impl<P> !UnwindSafe for Constraint<P>
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
§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