pub trait CloneConstraint: Constraint {
// Required method
fn clone_box(&self) -> Box<dyn CloneConstraint>;
}
Expand description
A trait for cloneable Constraints which is used in the
DynamicConstraint to clone trait objects. Normally a user should not have
to implement this trait manually, as it is automatically implemented for
all Constraint
s that implement Clone (and have static lifetime).
Required Methods§
Sourcefn clone_box(&self) -> Box<dyn CloneConstraint>
fn clone_box(&self) -> Box<dyn CloneConstraint>
Clones a trait object of this constraint.