[][src]Enum bulletproofs::r1cs::linear_combination::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, U> Cast<U> for T where
    U: FromCast<T>, 

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

impl<T> FromBits<T> for T

impl<T> FromCast<T> for T

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

impl<T, U> IntoBits<U> for T where
    U: FromBits<T>, 

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.