Method
add_assign
(&mut self, (coeff, other): (F, &'a LinearCombination<F>))
Source from the content-addressed store, hash-verified
| 331 | |
| 332 | impl<'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 | |
| 339 | impl<'a, F: Field> SubAssign<(F, &'a LinearCombination<F>)> for LinearCombination<F> { |
Callers
nothing calls this directly
Tested by
no test coverage detected