pub struct Constraint<F> {
pub terms: Vec<ConstraintTerm<F>>,
}Expand description
Represents a full constraint equation: sum(terms) == 0.
Fields§
§terms: Vec<ConstraintTerm<F>>Implementations§
Source§impl<F: TowerField> Constraint<F>
impl<F: TowerField> Constraint<F>
pub fn new(terms: Vec<ConstraintTerm<F>>) -> Self
Trait Implementations§
Source§impl<F: Clone> Clone for Constraint<F>
impl<F: Clone> Clone for Constraint<F>
Source§impl<F: Debug> Debug for Constraint<F>
impl<F: Debug> Debug for Constraint<F>
impl<F: Eq> Eq for Constraint<F>
Source§impl<F: PartialEq> PartialEq for Constraint<F>
impl<F: PartialEq> PartialEq for Constraint<F>
impl<F: PartialEq> StructuralPartialEq for Constraint<F>
Auto Trait Implementations§
impl<F> Freeze for Constraint<F>
impl<F> RefUnwindSafe for Constraint<F>
impl<F> Send for Constraint<F>
impl<F> Sync for Constraint<F>
impl<F> Unpin for Constraint<F>
impl<F> UnsafeUnpin for Constraint<F>
impl<F> UnwindSafe for Constraint<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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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