[][src]Struct wordfeud_solver::ItemList

pub struct ItemList<T: Item>(pub ArrayVec<[T; 16]>);

A wrapper around a list of Item. Used to represent Word, Letters and Row.

Implementations

impl ItemList<Letter>[src]

pub fn blank() -> Letters[src]

pub fn remove(&self, pos: usize) -> Letters[src]

impl ItemList<Cell>[src]

pub fn is_empty_cell(&self) -> bool[src]

check if row is a single empty cell

pub fn empty_row(len: usize) -> Row[src]

Create a row of len empty cells

Panics

if len > DIM

impl<T: Item> ItemList<T>[src]

pub fn new() -> ItemList<T>[src]

pub fn codes(&self) -> Vec<Code>[src]

Trait Implementations

impl<T: Clone + Item> Clone for ItemList<T>[src]

impl<T: Copy + Item> Copy for ItemList<T>[src]

impl<T: Debug + Item> Debug for ItemList<T>[src]

impl<T: Default + Item> Default for ItemList<T>[src]

impl<'_> From<&'_ ItemList<Cell>> for Word[src]

pub fn from(row: &Row) -> Self[src]

Panics if row contain empty

impl<T: Item> FromIterator<T> for ItemList<T>[src]

impl<T: Item> Index<Range<usize>> for ItemList<T>[src]

type Output = [T]

The returned type after indexing.

impl<T: Item> Index<usize> for ItemList<T>[src]

type Output = T

The returned type after indexing.

impl<T: Item> IndexMut<usize> for ItemList<T>[src]

impl<T: Item> IntoIterator for ItemList<T>[src]

type Item = T

The type of the elements being iterated over.

type IntoIter = ArrayVecIterator<[T; 16]>

Which kind of iterator are we turning this into?

impl<T: Item> List for ItemList<T>[src]

type Item = T

impl<T: PartialEq + Item> PartialEq<ItemList<T>> for ItemList<T>[src]

impl<T: Item> StructuralPartialEq for ItemList<T>[src]

impl<T: Item> TryFrom<Vec<u8, Global>> for ItemList<T>[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

impl<T> RefUnwindSafe for ItemList<T> where
    T: RefUnwindSafe
[src]

impl<T> Send for ItemList<T> where
    T: Send
[src]

impl<T> Sync for ItemList<T> where
    T: Sync
[src]

impl<T> Unpin for ItemList<T> where
    T: Unpin
[src]

impl<T> UnwindSafe for ItemList<T> where
    T: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,