pub struct LinearVariable<T> { /* private fields */ }
Implementations§
Source§impl<T> LinearVariable<T>
Create a new variable with constraints
impl<T> LinearVariable<T>
Create a new variable with constraints
Sourcepub fn bounds<S>(symbol: S, bound: LinearConstraint<T>) -> Self
pub fn bounds<S>(symbol: S, bound: LinearConstraint<T>) -> Self
Creates a new variable with the given lower and upper bounds.
Source§impl<T> LinearVariable<T>
impl<T> LinearVariable<T>
Source§impl<T: PartialOrd> LinearVariable<T>
impl<T: PartialOrd> LinearVariable<T>
Trait Implementations§
Source§impl<T> Debug for LinearVariable<T>where
T: Display,
impl<T> Debug for LinearVariable<T>where
T: Display,
Auto Trait Implementations§
impl<T> Freeze for LinearVariable<T>where
T: Freeze,
impl<T> RefUnwindSafe for LinearVariable<T>where
T: RefUnwindSafe,
impl<T> Send for LinearVariable<T>where
T: Send,
impl<T> Sync for LinearVariable<T>where
T: Sync,
impl<T> Unpin for LinearVariable<T>where
T: Unpin,
impl<T> UnwindSafe for LinearVariable<T>where
T: 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