Variants
Constant(Rc<F>)
Public(Index, Rc<F>)
Private(Index, Rc<F>)
Implementations
sourceimpl<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
sourceimpl<F: PrimeField> Add<&LinearCombination<F>> for &Variable<F>
impl<F: PrimeField> Add<&LinearCombination<F>> for &Variable<F>
type Output = LinearCombination<F>
type Output = LinearCombination<F>
The resulting type after applying the
+ operator.sourcefn add(self, other: &LinearCombination<F>) -> Self::Output
fn add(self, other: &LinearCombination<F>) -> Self::Output
Performs the
+ operation. Read moresourceimpl<F: PrimeField> Add<&LinearCombination<F>> for Variable<F>
impl<F: PrimeField> Add<&LinearCombination<F>> for Variable<F>
type Output = LinearCombination<F>
type Output = LinearCombination<F>
The resulting type after applying the
+ operator.sourcefn add(self, other: &LinearCombination<F>) -> Self::Output
fn add(self, other: &LinearCombination<F>) -> Self::Output
Performs the
+ operation. Read moresourceimpl<F: PrimeField> Add<&Variable<F>> for &Variable<F>
impl<F: PrimeField> Add<&Variable<F>> for &Variable<F>
sourceimpl<F: PrimeField> Add<&Variable<F>> for LinearCombination<F>
impl<F: PrimeField> Add<&Variable<F>> for LinearCombination<F>
sourceimpl<F: PrimeField> Add<&Variable<F>> for Variable<F>
impl<F: PrimeField> Add<&Variable<F>> for Variable<F>
sourceimpl<F: PrimeField> Add<LinearCombination<F>> for &Variable<F>
impl<F: PrimeField> Add<LinearCombination<F>> for &Variable<F>
type Output = LinearCombination<F>
type Output = LinearCombination<F>
The resulting type after applying the
+ operator.sourcefn add(self, other: LinearCombination<F>) -> Self::Output
fn add(self, other: LinearCombination<F>) -> Self::Output
Performs the
+ operation. Read moresourceimpl<F: PrimeField> Add<LinearCombination<F>> for Variable<F>
impl<F: PrimeField> Add<LinearCombination<F>> for Variable<F>
type Output = LinearCombination<F>
type Output = LinearCombination<F>
The resulting type after applying the
+ operator.sourcefn add(self, other: LinearCombination<F>) -> Self::Output
fn add(self, other: LinearCombination<F>) -> Self::Output
Performs the
+ operation. Read moresourceimpl<F: PrimeField> Add<Variable<F>> for &LinearCombination<F>
impl<F: PrimeField> Add<Variable<F>> for &LinearCombination<F>
sourceimpl<F: PrimeField> Add<Variable<F>> for &Variable<F>
impl<F: PrimeField> Add<Variable<F>> for &Variable<F>
sourceimpl<F: PrimeField> Add<Variable<F>> for LinearCombination<F>
impl<F: PrimeField> Add<Variable<F>> for LinearCombination<F>
sourceimpl<F: PrimeField> Add<Variable<F>> for Variable<F>
impl<F: PrimeField> Add<Variable<F>> for Variable<F>
sourceimpl<F: Clone + PrimeField> Clone for Variable<F>
impl<F: Clone + PrimeField> Clone for Variable<F>
sourceimpl<F: PrimeField> Debug for Variable<F>
impl<F: PrimeField> Debug for Variable<F>
sourceimpl<F: PrimeField> Display for Variable<F>
impl<F: PrimeField> Display for Variable<F>
sourceimpl<F: PrimeField> From<&Variable<F>> for LinearCombination<F>
impl<F: PrimeField> From<&Variable<F>> for LinearCombination<F>
sourceimpl<F: PrimeField> From<Variable<F>> for LinearCombination<F>
impl<F: PrimeField> From<Variable<F>> for LinearCombination<F>
sourceimpl<F: Hash + PrimeField> Hash for Variable<F>
impl<F: Hash + PrimeField> Hash for Variable<F>
sourceimpl<F: PrimeField> Ord for Variable<F>
impl<F: PrimeField> Ord for Variable<F>
1.21.0 · sourcefn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl<F: PartialEq + PrimeField> PartialEq<Variable<F>> for Variable<F>
impl<F: PartialEq + PrimeField> PartialEq<Variable<F>> for Variable<F>
sourceimpl<F: PrimeField> PartialOrd<Variable<F>> for Variable<F>
impl<F: PrimeField> PartialOrd<Variable<F>> for Variable<F>
sourcefn partial_cmp(&self, other: &Self) -> Option<Ordering>
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresourceimpl<F: PrimeField> Sub<&LinearCombination<F>> for &Variable<F>
impl<F: PrimeField> Sub<&LinearCombination<F>> for &Variable<F>
type Output = LinearCombination<F>
type Output = LinearCombination<F>
The resulting type after applying the
- operator.sourcefn sub(self, other: &LinearCombination<F>) -> Self::Output
fn sub(self, other: &LinearCombination<F>) -> Self::Output
Performs the
- operation. Read moresourceimpl<F: PrimeField> Sub<&LinearCombination<F>> for Variable<F>
impl<F: PrimeField> Sub<&LinearCombination<F>> for Variable<F>
type Output = LinearCombination<F>
type Output = LinearCombination<F>
The resulting type after applying the
- operator.sourcefn sub(self, other: &LinearCombination<F>) -> Self::Output
fn sub(self, other: &LinearCombination<F>) -> Self::Output
Performs the
- operation. Read moresourceimpl<F: PrimeField> Sub<&Variable<F>> for &Variable<F>
impl<F: PrimeField> Sub<&Variable<F>> for &Variable<F>
sourceimpl<F: PrimeField> Sub<&Variable<F>> for LinearCombination<F>
impl<F: PrimeField> Sub<&Variable<F>> for LinearCombination<F>
sourceimpl<F: PrimeField> Sub<&Variable<F>> for Variable<F>
impl<F: PrimeField> Sub<&Variable<F>> for Variable<F>
sourceimpl<F: PrimeField> Sub<LinearCombination<F>> for &Variable<F>
impl<F: PrimeField> Sub<LinearCombination<F>> for &Variable<F>
type Output = LinearCombination<F>
type Output = LinearCombination<F>
The resulting type after applying the
- operator.sourcefn sub(self, other: LinearCombination<F>) -> Self::Output
fn sub(self, other: LinearCombination<F>) -> Self::Output
Performs the
- operation. Read moresourceimpl<F: PrimeField> Sub<LinearCombination<F>> for Variable<F>
impl<F: PrimeField> Sub<LinearCombination<F>> for Variable<F>
type Output = LinearCombination<F>
type Output = LinearCombination<F>
The resulting type after applying the
- operator.sourcefn sub(self, other: LinearCombination<F>) -> Self::Output
fn sub(self, other: LinearCombination<F>) -> Self::Output
Performs the
- operation. Read moresourceimpl<F: PrimeField> Sub<Variable<F>> for &LinearCombination<F>
impl<F: PrimeField> Sub<Variable<F>> for &LinearCombination<F>
sourceimpl<F: PrimeField> Sub<Variable<F>> for &Variable<F>
impl<F: PrimeField> Sub<Variable<F>> for &Variable<F>
sourceimpl<F: PrimeField> Sub<Variable<F>> for LinearCombination<F>
impl<F: PrimeField> Sub<Variable<F>> for LinearCombination<F>
sourceimpl<F: PrimeField> Sub<Variable<F>> for Variable<F>
impl<F: PrimeField> Sub<Variable<F>> for Variable<F>
impl<F: Eq + PrimeField> Eq for Variable<F>
impl<F: PrimeField> StructuralEq for Variable<F>
impl<F: PrimeField> StructuralPartialEq for Variable<F>
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more