pub struct LinearTerms {
pub coeffs: Vec<(VarId, f64)>,
pub constant: f64,
}Expand description
Coefficients of a linear expression: sum(coeff * var) + constant.
Fields§
§coeffs: Vec<(VarId, f64)>§constant: f64Trait Implementations§
Source§impl Clone for LinearTerms
impl Clone for LinearTerms
Source§fn clone(&self) -> LinearTerms
fn clone(&self) -> LinearTerms
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LinearTerms
impl Debug for LinearTerms
Source§impl Default for LinearTerms
impl Default for LinearTerms
Source§fn default() -> LinearTerms
fn default() -> LinearTerms
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LinearTerms
impl RefUnwindSafe for LinearTerms
impl Send for LinearTerms
impl Sync for LinearTerms
impl Unpin for LinearTerms
impl UnsafeUnpin for LinearTerms
impl UnwindSafe for LinearTerms
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