[][src]Struct bulletproofs::r1cs::linear_combination::LinearCombination

pub struct LinearCombination {
    pub(super) terms: Vec<(Variable, Scalar)>,
}

Represents a linear combination of Variables. Each term is represented by a (Variable, Scalar) pair.

Fields

terms: Vec<(Variable, Scalar)>

Trait Implementations

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

type Output = Self

The resulting type after applying the + operator.

impl Clone for LinearCombination[src]

impl Debug for LinearCombination[src]

impl Default for LinearCombination[src]

impl<S: Into<Scalar>> From<S> for LinearCombination[src]

impl From<Variable> for LinearCombination[src]

impl<'a> FromIterator<&'a (Variable, Scalar)> for LinearCombination[src]

impl FromIterator<(Variable, Scalar)> for LinearCombination[src]

impl Mul<LinearCombination> for Scalar[src]

type Output = LinearCombination

The resulting type after applying the * operator.

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

type Output = Self

The resulting type after applying the * operator.

impl Neg for LinearCombination[src]

type Output = Self

The resulting type after applying the - operator.

impl PartialEq<LinearCombination> for LinearCombination[src]

impl StructuralPartialEq for LinearCombination[src]

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

type Output = Self

The resulting type after applying the - operator.

Auto Trait Implementations

impl RefUnwindSafe for LinearCombination

impl Send for LinearCombination

impl Sync for LinearCombination

impl Unpin for LinearCombination

impl UnwindSafe for LinearCombination

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> Clear for T where
    T: InitializableFromZeroed + ?Sized

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

impl<T> FromBits<T> for T

impl<T> FromCast<T> for T

impl<T> InitializableFromZeroed for T where
    T: Default

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.