Enum rlifesrc_lib::SearchOrder[][src]

pub enum SearchOrder {
    RowFirst,
    ColumnFirst,
    Diagonal,
    FromVec(Vec<Coord>),
}

The order to find a new unknown cell.

It will always search all generations of one cell before going to another cell.

Variants

RowFirst

Searches all cells of one row before going to the next row.

123
456
789
ColumnFirst

Searches all cells of one column before going to the next column.

147
258
369
Diagonal

Diagonal.

136
258
479

This search order requires the world to be square.

FromVec(Vec<Coord>)

Specify the search order by a vector of coordinates.

This vector should cover every cell in the search range, and should not have any duplication, otherwise rlifesrc would give a wrong result.

Trait Implementations

impl Clone for SearchOrder[src]

impl Debug for SearchOrder[src]

impl<'de> Deserialize<'de> for SearchOrder[src]

impl Eq for SearchOrder[src]

impl Hash for SearchOrder[src]

impl PartialEq<SearchOrder> for SearchOrder[src]

impl Serialize for SearchOrder[src]

impl StructuralEq for SearchOrder[src]

impl StructuralPartialEq for SearchOrder[src]

Auto Trait Implementations

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

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>,