pub trait VariableDomain:
'static
+ Clone
+ Debug
+ Send
+ Sync {
const DIMS_PER_VAR: usize;
const NAME: &'static str;
}Expand description
Sealed trait for ILP variable domains.
bool = binary variables (0 or 1), i32 = non-negative integers (0..2^31-1).
Required Associated Constants§
Sourceconst DIMS_PER_VAR: usize
const DIMS_PER_VAR: usize
Number of possible values per variable (used by dims()).
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.