MCPcopy Create free account
hub / github.com/Rust-API/Rust-API-Bypass-Checker / add

Method add

src/analysis/numerical/linear_constraint.rs:91–100  ·  view source on GitHub ↗
(self, other: Self)

Source from the content-addressed store, hash-verified

89 type Output = Self;
90
91 fn add(self, other: Self) -> Self {
92 let mut res = Self {
93 cof_map: self.cof_map,
94 cst: self.cst + &other.cst,
95 };
96 for (var, coff) in other {
97 res.add_term(var, coff);
98 }
99 res
100 }
101}
102
103impl Add<Integer> for LinearExpression {

Callers 2

fromMethod · 0.45
joinMethod · 0.45

Calls 2

add_termMethod · 0.80
pushMethod · 0.80

Tested by

no test coverage detected