pub struct Constraint<F>(/* private fields */)
where
F: PrimeField;
Implementations§
Source§impl<F> Constraint<F>where
F: PrimeField,
impl<F> Constraint<F>where
F: PrimeField,
Sourcepub fn to_terms(
&self,
) -> (&LinearCombination<F>, &LinearCombination<F>, &LinearCombination<F>)
pub fn to_terms( &self, ) -> (&LinearCombination<F>, &LinearCombination<F>, &LinearCombination<F>)
Returns a reference to the terms (a, b, c)
.
Trait Implementations§
Source§impl<F> Clone for Constraint<F>where
F: Clone + PrimeField,
impl<F> Clone for Constraint<F>where
F: Clone + PrimeField,
Source§fn clone(&self) -> Constraint<F>
fn clone(&self) -> Constraint<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> Debug for Constraint<F>where
F: Debug + PrimeField,
impl<F> Debug for Constraint<F>where
F: Debug + PrimeField,
Source§impl<F> Display for Constraint<F>where
F: PrimeField,
impl<F> Display for Constraint<F>where
F: PrimeField,
Source§impl<F> Hash for Constraint<F>where
F: Hash + PrimeField,
impl<F> Hash for Constraint<F>where
F: Hash + PrimeField,
Auto Trait Implementations§
impl<F> Freeze for Constraint<F>where
F: Freeze,
impl<F> RefUnwindSafe for Constraint<F>where
F: RefUnwindSafe,
impl<F> Send for Constraint<F>
impl<F> Sync for Constraint<F>
impl<F> Unpin for Constraint<F>where
F: Unpin,
impl<F> UnwindSafe for Constraint<F>where
F: UnwindSafe + RefUnwindSafe,
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<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