Struct snarkvm_wasm::Variable[][src]

pub struct Variable(_);

Represents a variable in a constraint system.

Implementations

impl 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]

This returns the index underlying the variable. Circuit implementations are not recommended to use this.

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]

type Output = LinearCombination<F>

The resulting type after applying the + operator.

impl<F> Add<Variable> for ConstraintVariable<F> where
    F: Field
[src]

type Output = ConstraintVariable<F>

The resulting type after applying the + operator.

impl Clone for Variable[src]

impl Copy for Variable[src]

impl Debug for Variable[src]

impl Eq for Variable[src]

impl<F> From<Variable> for LinearCombination<F> where
    F: Field
[src]

impl<F> From<Variable> for ConstraintVariable<F> where
    F: Field
[src]

impl Hash for Variable[src]

impl Ord for Variable[src]

impl PartialEq<Variable> for Variable[src]

impl PartialOrd<Variable> for Variable[src]

impl StructuralEq for Variable[src]

impl StructuralPartialEq for Variable[src]

impl<F> Sub<Variable> for ConstraintVariable<F> where
    F: Field
[src]

type Output = ConstraintVariable<F>

The resulting type after applying the - operator.

impl<F> Sub<Variable> for LinearCombination<F> where
    F: Field
[src]

type Output = LinearCombination<F>

The resulting type after applying the - operator.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,