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

Method sub

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

Source from the content-addressed store, hash-verified

128 type Output = Self;
129
130 fn sub(self, other: Self) -> Self {
131 let mut res = Self {
132 cof_map: self.cof_map,
133 cst: self.cst - &other.cst,
134 };
135 for (var, coff) in other {
136 res.add_term(var, -coff);
137 }
138 res
139 }
140}
141
142impl Sub<Integer> for LinearExpression {

Callers

nothing calls this directly

Calls 1

add_termMethod · 0.80

Tested by

no test coverage detected