Struct tari_bulletproofs::r1cs::LinearCombination
source · pub struct LinearCombination { /* private fields */ }
Expand description
Represents a linear combination of
Variables
. Each term is represented by a
(Variable, Scalar)
pair.
Trait Implementations§
source§impl<L: Into<LinearCombination>> Add<L> for LinearCombination
impl<L: Into<LinearCombination>> Add<L> for LinearCombination
source§impl Clone for LinearCombination
impl Clone for LinearCombination
source§fn clone(&self) -> LinearCombination
fn clone(&self) -> LinearCombination
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for LinearCombination
impl Debug for LinearCombination
source§impl Default for LinearCombination
impl Default for LinearCombination
source§impl<S: Into<Scalar>> From<S> for LinearCombination
impl<S: Into<Scalar>> From<S> for LinearCombination
source§fn from(s: S) -> LinearCombination
fn from(s: S) -> LinearCombination
Converts to this type from the input type.
source§impl From<Variable> for LinearCombination
impl From<Variable> for LinearCombination
source§fn from(v: Variable) -> LinearCombination
fn from(v: Variable) -> LinearCombination
Converts to this type from the input type.
source§impl<'a> FromIterator<&'a (Variable, Scalar)> for LinearCombination
impl<'a> FromIterator<&'a (Variable, Scalar)> for LinearCombination
source§impl FromIterator<(Variable, Scalar)> for LinearCombination
impl FromIterator<(Variable, Scalar)> for LinearCombination
source§impl Mul<LinearCombination> for Scalar
impl Mul<LinearCombination> for Scalar
§type Output = LinearCombination
type Output = LinearCombination
The resulting type after applying the
*
operator.source§impl Neg for LinearCombination
impl Neg for LinearCombination
source§impl PartialEq<LinearCombination> for LinearCombination
impl PartialEq<LinearCombination> for LinearCombination
source§fn eq(&self, other: &LinearCombination) -> bool
fn eq(&self, other: &LinearCombination) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.