ConstraintVecExt

Trait ConstraintVecExt 

Source
pub trait ConstraintVecExt {
    // Required methods
    fn and_all(self) -> Option<Constraint>;
    fn or_all(self) -> Option<Constraint>;
    fn postall(self, model: &mut Model) -> Vec<PropId>;
}
Expand description

Extension trait for Vec to enable fluent constraint array operations

Required Methods§

Source

fn and_all(self) -> Option<Constraint>

Combine all constraints with AND logic

Source

fn or_all(self) -> Option<Constraint>

Combine all constraints with OR logic

Source

fn postall(self, model: &mut Model) -> Vec<PropId>

Post all constraints to the model (AND semantics - all must be satisfied)

Implementations on Foreign Types§

Source§

impl ConstraintVecExt for Vec<Constraint>

Source§

fn and_all(self) -> Option<Constraint>

Source§

fn or_all(self) -> Option<Constraint>

Source§

fn postall(self, model: &mut Model) -> Vec<PropId>

Implementors§