pub enum DomainStmt {
IntervalDuration {
intervals: Vec<String>,
domain: Domain,
},
IntervalStart {
intervals: Vec<String>,
domain: Domain,
},
IntervalEnd {
intervals: Vec<String>,
domain: Domain,
},
IntervalOptional {
intervals: Vec<String>,
},
IntegerDomain {
name: String,
domain: Domain,
},
SetDomain {
name: String,
members: Vec<String>,
},
RealDomain {
name: String,
domain: Domain,
},
Demand {
interval: String,
set: String,
value: i64,
},
}Expand description
A domain statement: bounds or assigns values to variables.
Variants§
IntervalDuration
duration(x, y) = 3 or duration(x) in 2..5 or duration(x) in {2, 5, 7}
Fields
IntervalStart
start(x, y) in 0..10
Fields
IntervalEnd
end(x, y) in 0..20
Fields
IntervalOptional
optional(x, y, z)
IntegerDomain
x in 0..100 or x in {1, 3, 5}
SetDomain
x = {a, b, c}
RealDomain
x in 0.0..inf or x = 3.14 — real variable domain
Demand
demand(interval, set) = value
Trait Implementations§
Source§impl Clone for DomainStmt
impl Clone for DomainStmt
Source§fn clone(&self) -> DomainStmt
fn clone(&self) -> DomainStmt
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DomainStmt
impl Debug for DomainStmt
Source§impl PartialEq for DomainStmt
impl PartialEq for DomainStmt
Source§fn eq(&self, other: &DomainStmt) -> bool
fn eq(&self, other: &DomainStmt) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DomainStmt
impl Serialize for DomainStmt
impl StructuralPartialEq for DomainStmt
Auto Trait Implementations§
impl Freeze for DomainStmt
impl RefUnwindSafe for DomainStmt
impl Send for DomainStmt
impl Sync for DomainStmt
impl Unpin for DomainStmt
impl UnsafeUnpin for DomainStmt
impl UnwindSafe for DomainStmt
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