Struct snarkvm_wasm::Variable [−][src]
pub struct Variable(_);
Expand description
Represents a variable in a constraint system.
Implementations
impl Variable[src]
impl Variable[src]pub fn new_unchecked(idx: Index) -> Variable[src]
pub fn new_unchecked(idx: Index) -> Variable[src]This constructs a variable with an arbitrary index. Circuit implementations are not recommended to use this.
pub fn get_unchecked(&self) -> Index[src]
pub fn get_unchecked(&self) -> Index[src]This returns the index underlying the variable. Circuit implementations are not recommended to use this.
pub fn mut_unchecked(&mut self) -> &mut Index[src]
pub fn mut_unchecked(&mut self) -> &mut Index[src]Mutably borrows the index underlying the variable. Circuit implementations are not recommended to use this.
Trait Implementations
impl<F> Add<Variable> for LinearCombination<F> where
F: Field, [src]
impl<F> Add<Variable> for LinearCombination<F> where
F: Field, [src]type Output = LinearCombination<F>
type Output = LinearCombination<F>The resulting type after applying the + operator.
pub fn add(self, other: Variable) -> LinearCombination<F>[src]
pub fn add(self, other: Variable) -> LinearCombination<F>[src]Performs the + operation. Read more
impl<F> Add<Variable> for ConstraintVariable<F> where
F: Field, [src]
impl<F> Add<Variable> for ConstraintVariable<F> where
F: Field, [src]type Output = ConstraintVariable<F>
type Output = ConstraintVariable<F>The resulting type after applying the + operator.
pub fn add(self, other: Variable) -> ConstraintVariable<F>[src]
pub fn add(self, other: Variable) -> ConstraintVariable<F>[src]Performs the + operation. Read more
impl<F> From<Variable> for LinearCombination<F> where
F: Field, [src]
impl<F> From<Variable> for LinearCombination<F> where
F: Field, [src]pub fn from(var: Variable) -> LinearCombination<F>[src]
pub fn from(var: Variable) -> LinearCombination<F>[src]Performs the conversion.
impl<F> From<Variable> for ConstraintVariable<F> where
F: Field, [src]
impl<F> From<Variable> for ConstraintVariable<F> where
F: Field, [src]pub fn from(var: Variable) -> ConstraintVariable<F>[src]
pub fn from(var: Variable) -> ConstraintVariable<F>[src]Performs the conversion.
impl Ord for Variable[src]
impl Ord for Variable[src]impl PartialOrd<Variable> for Variable[src]
impl PartialOrd<Variable> for Variable[src]pub fn partial_cmp(&self, other: &Variable) -> Option<Ordering>[src]
pub fn partial_cmp(&self, other: &Variable) -> Option<Ordering>[src]This method returns an ordering between self and other values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool1.0.0[src]This method tests less than (for self and other) and is used by the < operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool1.0.0[src]This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl<F> Sub<Variable> for ConstraintVariable<F> where
F: Field, [src]
impl<F> Sub<Variable> for ConstraintVariable<F> where
F: Field, [src]type Output = ConstraintVariable<F>
type Output = ConstraintVariable<F>The resulting type after applying the - operator.
pub fn sub(self, other: Variable) -> ConstraintVariable<F>[src]
pub fn sub(self, other: Variable) -> ConstraintVariable<F>[src]Performs the - operation. Read more
impl<F> Sub<Variable> for LinearCombination<F> where
F: Field, [src]
impl<F> Sub<Variable> for LinearCombination<F> where
F: Field, [src]type Output = LinearCombination<F>
type Output = LinearCombination<F>The resulting type after applying the - operator.
pub fn sub(self, other: Variable) -> LinearCombination<F>[src]
pub fn sub(self, other: Variable) -> LinearCombination<F>[src]Performs the - operation. Read more
impl Copy for Variable[src]
impl Eq for Variable[src]
impl StructuralEq for Variable[src]
impl StructuralPartialEq for Variable[src]
Auto Trait Implementations
impl RefUnwindSafe for Variable
impl Send for Variable
impl Sync for Variable
impl Unpin for Variable
impl UnwindSafe for Variable
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]pub fn equivalent(&self, key: &K) -> bool[src]
pub fn equivalent(&self, key: &K) -> bool[src]Compare self to key and return true if they are equal.
impl<T> Pointable for T
impl<T> Pointable for Timpl<T> Same<T> for T
impl<T> Same<T> for Ttype Output = T
type Output = TShould always be Self
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,