Skip to main content

BoolVarArrayLogicOps

Trait BoolVarArrayLogicOps 

Source
pub trait BoolVarArrayLogicOps<'model>: Sealed {
    // Required methods
    fn and(self) -> Constraint<'model>;
    fn or(self) -> Constraint<'model>;
}
Expand description

Logical operations on slices of Constraints/BoolVars

Required Methods§

Source

fn and(self) -> Constraint<'model>

AND of Constraints

§Arguments
  • constraints - slice of Constraints/BoolVars
§Returns

Constraint representing the AND of the Constraints/BoolVars

§Panic:

if slice is empty

Source

fn or(self) -> Constraint<'model>

OR of Constraints

§Arguments
  • constraints - slice of Constraints/BoolVars
§Returns

Constraint representing the OR of the Constraints/BoolVars

§Panic:

if slice is empty

Implementations on Foreign Types§

Source§

impl<'model, Q: Borrow<BoolVar<'model>> + Sealed> BoolVarArrayLogicOps<'model> for &[Q]

Source§

fn and(self) -> Constraint<'model>

Source§

fn or(self) -> Constraint<'model>

Implementors§