[−][src]Struct nonogrid::block::multicolor::MultiColor
Trait Implementations
impl Color for MultiColor
[src]
fn blank() -> Self
[src]
fn is_solved(&self) -> bool
[src]
fn memoize_rate() -> bool
[src]
fn solution_rate(&self, all_colors: &[ColorId]) -> f64
[src]
Calculate the rate of the given cell.
The formula is like that:
rate = (N - n) / (N - 1)
, where
N = full puzzle color set
n = current color set for given cell,
in particular: a) when the cell is completely unsolved rate = (N - N) / (N - 1) = 0 b) when the cell is solved rate = (N - 1) / (N - 1) = 1
fn is_updated_with(&self, new: &Self) -> Result<bool, String>
[src]
fn variants(&self) -> Vec<Self> where
Self: Sized,
[src]
Self: Sized,
fn as_color_id(&self) -> Option<ColorId>
[src]
fn from_color_ids(ids: &[ColorId]) -> Self
[src]
impl DynamicColor for MultiColor
[src]
fn set_additional_blank(line: ReadRc<Vec<Self>>) -> (ReadRc<Vec<Self>>, bool)
[src]
fn both_colors() -> Option<Self>
[src]
fn can_be_blank(&self) -> bool
[src]
fn can_be(&self, color: &Self) -> bool
[src]
fn add_color(&self, color: Self) -> Self
[src]
fn solved_copy(&self) -> Self
[src]
impl Default for MultiColor
[src]
fn default() -> MultiColor
[src]
impl Clone for MultiColor
[src]
fn clone(&self) -> MultiColor
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Ord for MultiColor
[src]
fn cmp(&self, other: &MultiColor) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
Compares and returns the minimum of two values. Read more
fn clamp(self, min: Self, max: Self) -> Self
[src]
clamp
)Restrict a value to a certain interval. Read more
impl Eq for MultiColor
[src]
impl Copy for MultiColor
[src]
impl PartialOrd<MultiColor> for MultiColor
[src]
fn partial_cmp(&self, other: &MultiColor) -> Option<Ordering>
[src]
fn lt(&self, other: &MultiColor) -> bool
[src]
fn le(&self, other: &MultiColor) -> bool
[src]
fn gt(&self, other: &MultiColor) -> bool
[src]
fn ge(&self, other: &MultiColor) -> bool
[src]
impl PartialEq<MultiColor> for MultiColor
[src]
fn eq(&self, other: &MultiColor) -> bool
[src]
fn ne(&self, other: &MultiColor) -> bool
[src]
impl Debug for MultiColor
[src]
impl Display for MultiColor
[src]
impl Add<MultiColor> for MultiColor
[src]
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: Self) -> Self::Output
[src]
impl Sub<MultiColor> for MultiColor
[src]
type Output = Result<Self, String>
The resulting type after applying the -
operator.
fn sub(self, rhs: Self) -> Self::Output
[src]
impl Hash for MultiColor
[src]
Auto Trait Implementations
impl Send for MultiColor
impl Sync for MultiColor
Blanket Implementations
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,