MCPcopy Create free account
hub / github.com/arkworks-rs/poly-commit / add_assign

Method add_assign

poly-commit/src/data_structures.rs:333–336  ·  view source on GitHub ↗
(&mut self, (coeff, other): (F, &'a LinearCombination<F>))

Source from the content-addressed store, hash-verified

331
332impl<'a, F: Field> AddAssign<(F, &'a LinearCombination<F>)> for LinearCombination<F> {
333 fn add_assign(&mut self, (coeff, other): (F, &'a LinearCombination<F>)) {
334 self.terms
335 .extend(other.terms.iter().map(|(c, t)| (coeff * c, t.clone())));
336 }
337}
338
339impl<'a, F: Field> SubAssign<(F, &'a LinearCombination<F>)> for LinearCombination<F> {

Callers

nothing calls this directly

Calls 2

iterMethod · 0.80
pushMethod · 0.80

Tested by

no test coverage detected