pub trait VariableDomain:
'static
+ Clone
+ Debug
+ Send
+ Sync {
const NAME: &'static str;
// Required methods
fn default_variable() -> IntegerVariable;
fn validate_variables(
variables: &[IntegerVariable],
) -> Result<(), ConstructionError>;
}Expand description
Static certificate for a homogeneous ILP variable domain.
Required Associated Constants§
Required Methods§
Sourcefn default_variable() -> IntegerVariable
fn default_variable() -> IntegerVariable
Default stored variable used by homogeneous formulations.
Sourcefn validate_variables(
variables: &[IntegerVariable],
) -> Result<(), ConstructionError>
fn validate_variables( variables: &[IntegerVariable], ) -> Result<(), ConstructionError>
Validate that stored bounds satisfy this static certificate.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".