Trait nonogrid::Color[][src]

pub trait Color where
    Self: Debug + Eq + Hash + Default + Copy + Send + Sync + Add<Output = Self> + Sub<Output = Result<Self, String>>, 
{ fn blank() -> Self;
fn is_solved(self) -> bool;
fn solution_rate(self, all_colors: &[ColorId]) -> f64;
fn variants(self) -> Vec<Self>
    where
        Self: Sized
;
fn as_color_id(self) -> Option<ColorId>;
fn from_color_ids(ids: &[ColorId]) -> Self; fn memoize_rate() -> bool { ... } }

Required methods

Provided methods

Implementors