Struct snarkvm_r1cs::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: Field> Add<Variable> for ConstraintVariable<F>
[src]
impl<F: Field> Add<Variable> for ConstraintVariable<F>
[src]impl<F: Field> Add<Variable> for LinearCombination<F>
[src]
impl<F: Field> Add<Variable> for LinearCombination<F>
[src]impl<F: Field> From<Variable> for ConstraintVariable<F>
[src]
impl<F: Field> From<Variable> for ConstraintVariable<F>
[src]impl<F: Field> From<Variable> for LinearCombination<F>
[src]
impl<F: Field> From<Variable> for LinearCombination<F>
[src]impl Ord for Variable
[src]
impl Ord for Variable
[src]impl PartialOrd<Variable> for Variable
[src]
impl PartialOrd<Variable> for Variable
[src]fn partial_cmp(&self, other: &Variable) -> Option<Ordering>
[src]
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) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.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) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.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: Field> Sub<Variable> for ConstraintVariable<F>
[src]
impl<F: Field> Sub<Variable> for ConstraintVariable<F>
[src]impl<F: Field> Sub<Variable> for LinearCombination<F>
[src]
impl<F: Field> Sub<Variable> for LinearCombination<F>
[src]type Output = LinearCombination<F>
type Output = LinearCombination<F>
The resulting type after applying the -
operator.
fn sub(self, other: Variable) -> LinearCombination<F>
[src]
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> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The 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>,