Method
sub_assign
(&mut self, (coeff, other): (F, &'a LinearCombination<F>))
Source from the content-addressed store, hash-verified
| 338 | |
| 339 | impl<'a, F: Field> SubAssign<(F, &'a LinearCombination<F>)> for LinearCombination<F> { |
| 340 | fn sub_assign(&mut self, (coeff, other): (F, &'a LinearCombination<F>)) { |
| 341 | self.terms |
| 342 | .extend(other.terms.iter().map(|(c, t)| (-coeff * c, t.clone()))); |
| 343 | } |
| 344 | } |
| 345 | |
| 346 | impl<'a, F: Field> AddAssign<&'a LinearCombination<F>> for LinearCombination<F> { |
Callers
nothing calls this directly
Tested by
no test coverage detected