pub enum Variable<F: PrimeField> {
Constant(Rc<F>),
Public(Rc<(Index, F)>),
Private(Rc<(Index, F)>),
}
Variants§
Implementations§
Source§impl<F: PrimeField> Variable<F>
impl<F: PrimeField> Variable<F>
Sourcepub fn is_constant(&self) -> bool
pub fn is_constant(&self) -> bool
Returns true
if the variable is a constant.
Sourcepub fn is_private(&self) -> bool
pub fn is_private(&self) -> bool
Returns true
if the variable is private.
Trait Implementations§
Source§impl<F: PrimeField> Add<&LinearCombination<F>> for &Variable<F>
impl<F: PrimeField> Add<&LinearCombination<F>> for &Variable<F>
Source§type Output = LinearCombination<F>
type Output = LinearCombination<F>
The resulting type after applying the
+
operator.Source§impl<F: PrimeField> Add<&LinearCombination<F>> for Variable<F>
impl<F: PrimeField> Add<&LinearCombination<F>> for Variable<F>
Source§type Output = LinearCombination<F>
type Output = LinearCombination<F>
The resulting type after applying the
+
operator.Source§impl<F: PrimeField> Add<&Variable<F>> for LinearCombination<F>
impl<F: PrimeField> Add<&Variable<F>> for LinearCombination<F>
Source§impl<F: PrimeField> Add<LinearCombination<F>> for &Variable<F>
impl<F: PrimeField> Add<LinearCombination<F>> for &Variable<F>
Source§type Output = LinearCombination<F>
type Output = LinearCombination<F>
The resulting type after applying the
+
operator.Source§impl<F: PrimeField> Add<LinearCombination<F>> for Variable<F>
impl<F: PrimeField> Add<LinearCombination<F>> for Variable<F>
Source§type Output = LinearCombination<F>
type Output = LinearCombination<F>
The resulting type after applying the
+
operator.Source§impl<F: PrimeField> Add<Variable<F>> for &LinearCombination<F>
impl<F: PrimeField> Add<Variable<F>> for &LinearCombination<F>
Source§impl<F: PrimeField> Add<Variable<F>> for LinearCombination<F>
impl<F: PrimeField> Add<Variable<F>> for LinearCombination<F>
Source§impl<F: PrimeField> Add for Variable<F>
impl<F: PrimeField> Add for Variable<F>
Source§impl<F: PrimeField> Debug for Variable<F>
impl<F: PrimeField> Debug for Variable<F>
Source§impl<F: PrimeField> Display for Variable<F>
impl<F: PrimeField> Display for Variable<F>
Source§impl<F: PrimeField> From<&Variable<F>> for AssignmentVariable<F>
impl<F: PrimeField> From<&Variable<F>> for AssignmentVariable<F>
Source§impl<F: PrimeField> From<&Variable<F>> for LinearCombination<F>
impl<F: PrimeField> From<&Variable<F>> for LinearCombination<F>
Source§impl<F: PrimeField> From<Variable<F>> for LinearCombination<F>
impl<F: PrimeField> From<Variable<F>> for LinearCombination<F>
Source§impl<F: PrimeField> Ord for Variable<F>
impl<F: PrimeField> Ord for Variable<F>
Source§impl<F: PrimeField> PartialOrd for Variable<F>
impl<F: PrimeField> PartialOrd for Variable<F>
Source§impl<F: PrimeField> Sub<&LinearCombination<F>> for &Variable<F>
impl<F: PrimeField> Sub<&LinearCombination<F>> for &Variable<F>
Source§type Output = LinearCombination<F>
type Output = LinearCombination<F>
The resulting type after applying the
-
operator.Source§impl<F: PrimeField> Sub<&LinearCombination<F>> for Variable<F>
impl<F: PrimeField> Sub<&LinearCombination<F>> for Variable<F>
Source§type Output = LinearCombination<F>
type Output = LinearCombination<F>
The resulting type after applying the
-
operator.Source§impl<F: PrimeField> Sub<&Variable<F>> for LinearCombination<F>
impl<F: PrimeField> Sub<&Variable<F>> for LinearCombination<F>
Source§impl<F: PrimeField> Sub<LinearCombination<F>> for &Variable<F>
impl<F: PrimeField> Sub<LinearCombination<F>> for &Variable<F>
Source§type Output = LinearCombination<F>
type Output = LinearCombination<F>
The resulting type after applying the
-
operator.Source§impl<F: PrimeField> Sub<LinearCombination<F>> for Variable<F>
impl<F: PrimeField> Sub<LinearCombination<F>> for Variable<F>
Source§type Output = LinearCombination<F>
type Output = LinearCombination<F>
The resulting type after applying the
-
operator.Source§impl<F: PrimeField> Sub<Variable<F>> for &LinearCombination<F>
impl<F: PrimeField> Sub<Variable<F>> for &LinearCombination<F>
Source§impl<F: PrimeField> Sub<Variable<F>> for LinearCombination<F>
impl<F: PrimeField> Sub<Variable<F>> for LinearCombination<F>
Source§impl<F: PrimeField> Sub for Variable<F>
impl<F: PrimeField> Sub for Variable<F>
impl<F: Eq + PrimeField> Eq for Variable<F>
impl<F: 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>
impl<F> UnwindSafe for Variable<F>where
F: 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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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