(&self)
| 64 | |
| 65 | impl Clone for ValueConstraint { |
| 66 | fn clone(&self) -> Self { |
| 67 | match self { |
| 68 | ValueConstraint::Fixed => ValueConstraint::Fixed, |
| 69 | ValueConstraint::ReadOnly => ValueConstraint::ReadOnly, |
| 70 | ValueConstraint::Domain(c) => ValueConstraint::Domain(*c), |
| 71 | } |
| 72 | } |
| 73 | } |
| 74 | |
| 75 | /// A type erased version of [`DomainConstraint`] that we can reference on a [`VarDefinition`]. |