pub enum IntegerPredicate {
LowerBound {
domain_id: DomainId,
lower_bound: i32,
},
UpperBound {
domain_id: DomainId,
upper_bound: i32,
},
NotEqual {
domain_id: DomainId,
not_equal_constant: i32,
},
Equal {
domain_id: DomainId,
equality_constant: i32,
},
}Expand description
Representation of a domain operation
It can either be in the form of atomic constraints over
DomainIds (in the form of IntegerPredicate::LowerBound,
IntegerPredicate::UpperBound, IntegerPredicate::NotEqual or IntegerPredicate::Equal)
Variants§
Implementations§
source§impl IntegerPredicate
impl IntegerPredicate
pub fn is_equality_predicate(&self) -> bool
pub fn is_lower_bound_predicate(&self) -> bool
pub fn is_not_equal_predicate(&self) -> bool
sourcepub fn get_domain(&self) -> DomainId
pub fn get_domain(&self) -> DomainId
Returns the DomainId of the IntegerPredicate
Trait Implementations§
source§impl Clone for IntegerPredicate
impl Clone for IntegerPredicate
source§fn clone(&self) -> IntegerPredicate
fn clone(&self) -> IntegerPredicate
Returns a copy 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 Debug for IntegerPredicate
impl Debug for IntegerPredicate
source§impl Display for IntegerPredicate
impl Display for IntegerPredicate
source§impl From<IntegerPredicate> for Predicate
impl From<IntegerPredicate> for Predicate
source§fn from(value: IntegerPredicate) -> Self
fn from(value: IntegerPredicate) -> Self
Converts to this type from the input type.
source§impl Hash for IntegerPredicate
impl Hash for IntegerPredicate
source§impl Not for IntegerPredicate
impl Not for IntegerPredicate
source§impl PartialEq for IntegerPredicate
impl PartialEq for IntegerPredicate
source§impl TryFrom<Predicate> for IntegerPredicate
impl TryFrom<Predicate> for IntegerPredicate
impl Copy for IntegerPredicate
impl Eq for IntegerPredicate
impl StructuralPartialEq for IntegerPredicate
Auto Trait Implementations§
impl Freeze for IntegerPredicate
impl RefUnwindSafe for IntegerPredicate
impl Send for IntegerPredicate
impl Sync for IntegerPredicate
impl Unpin for IntegerPredicate
impl UnwindSafe for IntegerPredicate
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§impl<Value> Statistic for Valuewhere
Value: Display,
impl<Value> Statistic for Valuewhere
Value: Display,
source§fn log(&self, statistic_logger: StatisticLogger)
fn log(&self, statistic_logger: StatisticLogger)
Logs the
Statistic using the provided StatisticLogger.