File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ use core::fmt::{Debug, Formatter};
55use std:: ops:: { Shl , Shr , Sub } ;
66
77/// A constraint represents a single (in)equality that must hold in the solution.
8+ #[ derive( Clone ) ]
89pub struct Constraint {
910 /// The expression that is constrained to be null or negative
1011 pub ( crate ) expression : Expression ,
Original file line number Diff line number Diff line change @@ -371,7 +371,7 @@ pub fn variable() -> VariableDefinition {
371371/// Each problem has a unique type, which prevents using the variables
372372/// from one problem inside an other one.
373373/// Instances of this type should be created exclusively using the [crate::variables!] macro.
374- #[ derive( Default ) ]
374+ #[ derive( Default , Clone ) ]
375375pub struct ProblemVariables {
376376 variables : Vec < VariableDefinition > ,
377377 initial_count : usize ,
You can’t perform that action at this time.
0 commit comments