pub struct Constraint<E> {
pub lhs: E,
pub operator: Ordering,
pub rhs: f64,
}Expand description
A constraint expressing a relation between two expressions
Fields§
§lhs: Eleft hand side of the constraint
operator: Ordering‘<=’ ‘=’ or ‘>=’
rhs: f64Right-hand side of the constraint
Trait Implementations§
Source§impl<E: WriteToLpFileFormat> WriteToLpFileFormat for Constraint<E>
impl<E: WriteToLpFileFormat> WriteToLpFileFormat for Constraint<E>
Source§fn to_lp_file_format(&self, f: &mut Formatter<'_>) -> Result
fn to_lp_file_format(&self, f: &mut Formatter<'_>) -> Result
Write the object to the given formatter in the .lp format
Auto Trait Implementations§
impl<E> Freeze for Constraint<E>where
E: Freeze,
impl<E> RefUnwindSafe for Constraint<E>where
E: RefUnwindSafe,
impl<E> Send for Constraint<E>where
E: Send,
impl<E> Sync for Constraint<E>where
E: Sync,
impl<E> Unpin for Constraint<E>where
E: Unpin,
impl<E> UnwindSafe for Constraint<E>where
E: UnwindSafe,
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