pub struct ConstraintProgrammingPack;Trait Implementations§
Source§impl Pack for ConstraintProgrammingPack
impl Pack for ConstraintProgrammingPack
Source§fn validate_inputs(&self, inputs: &Value) -> Result<()>
fn validate_inputs(&self, inputs: &Value) -> Result<()>
Validate and deserialize the input payload
Source§fn invariants(&self) -> &[InvariantDef]
fn invariants(&self) -> &[InvariantDef]
Get invariant definitions for this pack
Source§fn solve(&self, spec: &ProblemSpec) -> Result<PackSolveResult>
fn solve(&self, spec: &ProblemSpec) -> Result<PackSolveResult>
Solve the problem and return a proposed plan
Source§fn check_invariants(&self, _plan: &ProposedPlan) -> Result<Vec<InvariantResult>>
fn check_invariants(&self, _plan: &ProposedPlan) -> Result<Vec<InvariantResult>>
Check invariants against a proposed plan
Source§fn evaluate_gate(
&self,
_plan: &ProposedPlan,
invariant_results: &[InvariantResult],
) -> PromotionGate
fn evaluate_gate( &self, _plan: &ProposedPlan, invariant_results: &[InvariantResult], ) -> PromotionGate
Evaluate promotion gate based on plan and invariant results
Auto Trait Implementations§
impl Freeze for ConstraintProgrammingPack
impl RefUnwindSafe for ConstraintProgrammingPack
impl Send for ConstraintProgrammingPack
impl Sync for ConstraintProgrammingPack
impl Unpin for ConstraintProgrammingPack
impl UnsafeUnpin for ConstraintProgrammingPack
impl UnwindSafe for ConstraintProgrammingPack
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more