[−][src]Struct nonogrid::Description
Fields
vec: Vec<T>
Implementations
impl<T> Description<T> where
T: Block,
[src]
T: Block,
impl<B> Description<B> where
B: Block,
[src]
B: Block,
pub fn block_starts(&self) -> Vec<usize>
[src]
pub fn positions_number(&self, line_length: usize) -> usize
[src]
The number of potential block positions for given line size.
pub fn color_ranges(&self, line_length: usize) -> HashMap<ColorId, Range<usize>>
[src]
For every color in the given description produce a valid position range
Trait Implementations
impl<T: Clone + Block> Clone for Description<T> where
T: Block,
[src]
T: Block,
fn clone(&self) -> Description<T>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: Debug + Block> Debug for Description<T> where
T: Block,
[src]
T: Block,
impl<T: Eq + Block> Eq for Description<T> where
T: Block,
[src]
T: Block,
impl<T: Hash + Block> Hash for Description<T> where
T: Block,
[src]
T: Block,
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<T: PartialEq + Block> PartialEq<Description<T>> for Description<T> where
T: Block,
[src]
T: Block,
fn eq(&self, other: &Description<T>) -> bool
[src]
fn ne(&self, other: &Description<T>) -> bool
[src]
impl<T: Block> StructuralEq for Description<T> where
T: Block,
[src]
T: Block,
impl<T: Block> StructuralPartialEq for Description<T> where
T: Block,
[src]
T: Block,
Auto Trait Implementations
impl<T> RefUnwindSafe for Description<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Description<T>
impl<T> Sync for Description<T>
impl<T> Unpin for Description<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Description<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool
[src]
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>,