pub enum Domain {
Fixed(i64),
Range {
min: i64,
max: i64,
},
Enumerated(Vec<i64>),
RealFixed(f64),
RealRange {
min: f64,
max: f64,
},
}Expand description
A domain specification: fixed value, range, or enumerated set.
Variants§
Fixed(i64)
A single fixed integer value: = 3
Range
An integer range: in 0..100
Enumerated(Vec<i64>)
An enumerated set of integer values: in {1, 3, 5}
RealFixed(f64)
A single fixed real value: = 3.14
RealRange
A real range: in 0.0..inf (f64::INFINITY for unbounded)
Trait Implementations§
impl StructuralPartialEq for Domain
Auto Trait Implementations§
impl Freeze for Domain
impl RefUnwindSafe for Domain
impl Send for Domain
impl Sync for Domain
impl Unpin for Domain
impl UnsafeUnpin 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