Function constrain

Source
pub fn constrain<S: Fn(Option<HashMap<String, String>>) -> Evaluate + Sync + Send + 'static>(
    constraints: Option<Vec<Constraint>>,
    strategy: &S,
    parameters: Option<HashMap<String, String>>,
) -> Evaluate
Expand description

This function is a strategy decorator which compiles to nothing when there are no constraints, or to a constraint evaluating test if there are.