pub struct LinTerm {
pub var: VarId,
pub coeff: f64,
}Expand description
A single term in a linear expression: coeff * var.
Fields§
§var: VarIdThe variable involved in this term.
coeff: f64The coefficient for the variable.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LinTerm
impl RefUnwindSafe for LinTerm
impl Send for LinTerm
impl Sync for LinTerm
impl Unpin for LinTerm
impl UnsafeUnpin for LinTerm
impl UnwindSafe for LinTerm
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