Enum rlifesrc_lib::config::search_order::SearchOrder
source · pub enum SearchOrder {
RowFirst,
ColumnFirst,
Diagonal,
FromVec(Vec<Coord>),
}
Expand description
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§
source§impl Clone for SearchOrder
impl Clone for SearchOrder
source§fn clone(&self) -> SearchOrder
fn clone(&self) -> SearchOrder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SearchOrder
impl Debug for SearchOrder
source§impl<'de> Deserialize<'de> for SearchOrder
impl<'de> Deserialize<'de> for SearchOrder
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for SearchOrder
impl Hash for SearchOrder
source§impl PartialEq for SearchOrder
impl PartialEq for SearchOrder
source§fn eq(&self, other: &SearchOrder) -> bool
fn eq(&self, other: &SearchOrder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SearchOrder
impl Serialize for SearchOrder
impl Eq for SearchOrder
impl StructuralEq for SearchOrder
impl StructuralPartialEq for SearchOrder
Auto Trait Implementations§
impl RefUnwindSafe for SearchOrder
impl Send for SearchOrder
impl Sync for SearchOrder
impl Unpin for SearchOrder
impl UnwindSafe for SearchOrder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more