Skip to main content

BoundsPolicy

Trait BoundsPolicy 

Source
pub trait BoundsPolicy:
    'static
    + Clone
    + Debug
    + Send
    + Sync {
    const NAME: &'static str;

    // Required method
    fn validate_variables(
        variables: &[IntegerVariable],
    ) -> Result<(), ConstructionError>;
}
Expand description

Type-level requirement on the explicitly stored variable intervals.

Required Associated Constants§

Source

const NAME: &'static str

Registered bounds dimension value.

Required Methods§

Source

fn validate_variables( variables: &[IntegerVariable], ) -> Result<(), ConstructionError>

Validate the interval requirement independently of the variable domain.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl BoundsPolicy for Bounded

Source§

const NAME: &'static str = "bounded"

Source§

impl BoundsPolicy for General

Source§

const NAME: &'static str = "general"