pub struct Domain { /* private fields */ }Expand description
A domain inside the variable state.
Implementations§
Source§impl Domain
impl Domain
Sourcepub fn all_integers() -> Domain
pub fn all_integers() -> Domain
Create a domain that contains all integers.
Sourcepub fn new(
lower_bound: IntExt,
upper_bound: IntExt,
holes: BTreeSet<i32>,
) -> Self
pub fn new( lower_bound: IntExt, upper_bound: IntExt, holes: BTreeSet<i32>, ) -> Self
Construct a new domain.
Sourcepub fn lower_bound(&self) -> IntExt
pub fn lower_bound(&self) -> IntExt
Get the lower bound of the domain.
Sourcepub fn upper_bound(&self) -> IntExt
pub fn upper_bound(&self) -> IntExt
Get the upper bound of the domain.
Sourcepub fn is_consistent(&self) -> bool
pub fn is_consistent(&self) -> bool
Returns true if the domain contains at least one value.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Domain
impl RefUnwindSafe for Domain
impl Send for Domain
impl Sync for Domain
impl Unpin for Domain
impl UnwindSafe for Domain
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