pub struct LinExpr {
pub coeffs: BTreeMap<String, i64>,
pub constant: i64,
}Expand description
A linear expression Σ cⱼ·xⱼ + constant over the integers (zero coefficients
pruned, so equality is canonical).
Fields§
§coeffs: BTreeMap<String, i64>§constant: i64Implementations§
Trait Implementations§
impl Eq for LinExpr
impl StructuralPartialEq for LinExpr
Auto Trait Implementations§
impl Freeze for LinExpr
impl RefUnwindSafe for LinExpr
impl Send for LinExpr
impl Sync for LinExpr
impl Unpin for LinExpr
impl UnsafeUnpin for LinExpr
impl UnwindSafe for LinExpr
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more