pub enum LinearConstraint<T> {
None,
Greater {
lower: T,
inclusive: bool,
},
Less {
upper: T,
inclusive: bool,
},
Equal {
value: T,
},
NotEqual {
value: T,
},
Or {
left: Box<LinearConstraint<T>>,
right: Box<LinearConstraint<T>>,
},
And {
left: Box<LinearConstraint<T>>,
right: Box<LinearConstraint<T>>,
},
}
Variants§
Implementations§
Source§impl<T> LinearConstraint<T>
impl<T> LinearConstraint<T>
Source§impl<T> LinearConstraint<T>
impl<T> LinearConstraint<T>
pub fn contains(&self, value: &T) -> boolwhere
T: PartialOrd,
Trait Implementations§
Source§impl<T: Debug> Debug for LinearConstraint<T>
impl<T: Debug> Debug for LinearConstraint<T>
Source§impl<T> Default for LinearConstraint<T>
impl<T> Default for LinearConstraint<T>
Auto Trait Implementations§
impl<T> Freeze for LinearConstraint<T>where
T: Freeze,
impl<T> RefUnwindSafe for LinearConstraint<T>where
T: RefUnwindSafe,
impl<T> Send for LinearConstraint<T>where
T: Send,
impl<T> Sync for LinearConstraint<T>where
T: Sync,
impl<T> Unpin for LinearConstraint<T>where
T: Unpin,
impl<T> UnwindSafe for LinearConstraint<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