pub enum NonNegatedBooleanExpression<T: Atomic> {
ComparisonExpression(Box<IntegerExpression<T>>, ComparisonOp, Box<IntegerExpression<T>>),
BinaryExpression(Box<NonNegatedBooleanExpression<T>>, BooleanConnective, Box<NonNegatedBooleanExpression<T>>),
True,
False,
}Expand description
Boolean expressions that do not contain a Not
Variants§
ComparisonExpression(Box<IntegerExpression<T>>, ComparisonOp, Box<IntegerExpression<T>>)
Comparison between two integer expressions
BinaryExpression(Box<NonNegatedBooleanExpression<T>>, BooleanConnective, Box<NonNegatedBooleanExpression<T>>)
Boolean expressions combined through boolean connective
True
true
False
false
Trait Implementations§
Source§impl<T: Clone + Atomic> Clone for NonNegatedBooleanExpression<T>
impl<T: Clone + Atomic> Clone for NonNegatedBooleanExpression<T>
Source§fn clone(&self) -> NonNegatedBooleanExpression<T>
fn clone(&self) -> NonNegatedBooleanExpression<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: Atomic> Display for NonNegatedBooleanExpression<T>
impl<T: Atomic> Display for NonNegatedBooleanExpression<T>
Source§impl<T: Atomic> From<BooleanExpression<T>> for NonNegatedBooleanExpression<T>
impl<T: Atomic> From<BooleanExpression<T>> for NonNegatedBooleanExpression<T>
Source§fn from(val: BooleanExpression<T>) -> Self
fn from(val: BooleanExpression<T>) -> Self
Converts to this type from the input type.
Source§impl<T: PartialEq + Atomic> PartialEq for NonNegatedBooleanExpression<T>
impl<T: PartialEq + Atomic> PartialEq for NonNegatedBooleanExpression<T>
Source§fn eq(&self, other: &NonNegatedBooleanExpression<T>) -> bool
fn eq(&self, other: &NonNegatedBooleanExpression<T>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl TryFrom<NonNegatedBooleanExpression<Variable>> for LIAVariableConstraint
impl TryFrom<NonNegatedBooleanExpression<Variable>> for LIAVariableConstraint
Source§fn try_from(
value: NonNegatedBooleanExpression<Variable>,
) -> Result<Self, Self::Error>
fn try_from( value: NonNegatedBooleanExpression<Variable>, ) -> Result<Self, Self::Error>
Parse the NonNegatedBooleanExpression into a LIAVariableConstraint by
converting into weighted sums of parameters and variables
Source§type Error = ConstraintRewriteError
type Error = ConstraintRewriteError
The type returned in the event of a conversion error.
impl<T: Atomic> StructuralPartialEq for NonNegatedBooleanExpression<T>
Auto Trait Implementations§
impl<T> Freeze for NonNegatedBooleanExpression<T>
impl<T> RefUnwindSafe for NonNegatedBooleanExpression<T>where
T: RefUnwindSafe,
impl<T> Send for NonNegatedBooleanExpression<T>where
T: Send,
impl<T> Sync for NonNegatedBooleanExpression<T>where
T: Sync,
impl<T> Unpin for NonNegatedBooleanExpression<T>
impl<T> UnwindSafe for NonNegatedBooleanExpression<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