[][src]Enum bulletproofs::r1cs::Variable

pub enum Variable {
    Committed(usize),
    MultiplierLeft(usize),
    MultiplierRight(usize),
    MultiplierOutput(usize),
    One(),
}

Represents a variable in a constraint system.

Variants

Committed(usize)

Represents an external input specified by a commitment.

MultiplierLeft(usize)

Represents the left input of a multiplication gate.

MultiplierRight(usize)

Represents the right input of a multiplication gate.

MultiplierOutput(usize)

Represents the output of a multiplication gate.

One()

Represents the constant 1.

Trait Implementations

impl<L: Into<LinearCombination>> Add<L> for Variable[src]

type Output = LinearCombination

The resulting type after applying the + operator.

impl Add<Variable> for Scalar[src]

type Output = LinearCombination

The resulting type after applying the + operator.

impl Clone for Variable[src]

impl Copy for Variable[src]

impl Debug for Variable[src]

impl From<Variable> for LinearCombination[src]

impl<S: Into<Scalar>> Mul<S> for Variable[src]

type Output = LinearCombination

The resulting type after applying the * operator.

impl Mul<Variable> for Scalar[src]

type Output = LinearCombination

The resulting type after applying the * operator.

impl Neg for Variable[src]

type Output = LinearCombination

The resulting type after applying the - operator.

impl PartialEq<Variable> for Variable[src]

impl StructuralPartialEq for Variable[src]

impl<L: Into<LinearCombination>> Sub<L> for Variable[src]

type Output = LinearCombination

The resulting type after applying the - operator.

impl Sub<Variable> for Scalar[src]

type Output = LinearCombination

The resulting type after applying the - operator.

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> 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<T> From<T> for T[src]

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

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 = !

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.