pub enum Variable<F: PrimeField> {
Committed(usize),
MultiplierLeft(usize),
MultiplierRight(usize),
MultiplierOutput(usize),
One(),
Phantom(PhantomData<F>),
}Expand description
Represents a variable in a constraint system.
Variants§
Committed(usize)
Represents an external input specified by a commitment.
MultiplierLeft(usize)
Represents the left input of a multiplication gate.
MultiplierRight(usize)
Represents the right input of a multiplication gate.
MultiplierOutput(usize)
Represents the output of a multiplication gate.
One()
Represents the constant 1.
Phantom(PhantomData<F>)
Phantom.
Trait Implementations§
Source§impl<F: PrimeField, L: Into<LinearCombination<F>>> Add<L> for Variable<F>
impl<F: PrimeField, L: Into<LinearCombination<F>>> Add<L> for Variable<F>
impl<F: Copy + PrimeField> Copy for Variable<F>
Source§impl<F: PrimeField> From<Variable<F>> for LinearCombination<F>
impl<F: PrimeField> From<Variable<F>> for LinearCombination<F>
Source§fn from(v: Variable<F>) -> LinearCombination<F>
fn from(v: Variable<F>) -> LinearCombination<F>
Converts to this type from the input type.
Source§impl<F: PrimeField> Neg for Variable<F>
impl<F: PrimeField> Neg for Variable<F>
impl<F: PartialEq + PrimeField> StructuralPartialEq for Variable<F>
Auto Trait Implementations§
impl<F> Freeze for Variable<F>
impl<F> RefUnwindSafe for Variable<F>where
F: RefUnwindSafe,
impl<F> Send for Variable<F>
impl<F> Sync for Variable<F>
impl<F> Unpin for Variable<F>where
F: Unpin,
impl<F> UnsafeUnpin for Variable<F>
impl<F> UnwindSafe for Variable<F>where
F: UnwindSafe,
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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