CloneConstraint

Trait CloneConstraint 

Source
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 Constraints that implement Clone (and have static lifetime).

Required Methods§

Source

fn clone_box(&self) -> Box<dyn CloneConstraint>

Clones a trait object of this constraint.

Implementors§

Source§

impl<C: Constraint + Clone + 'static> CloneConstraint for C