Trait sudoku_variants::constraint::CloneConstraint[][src]

pub trait CloneConstraint: Constraint {
    fn clone_box(&self) -> Box<dyn CloneConstraint>;
}

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

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

Clones a trait object of this constraint.

Loading content...

Implementors

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

Loading content...