Struct rlifesrc_lib::KnownCell
source · pub struct KnownCell {
pub coord: Coord,
pub state: State,
}
Expand description
A cell whose state is known before the search.
Fields§
§coord: Coord
The coordinates of the set cell.
state: State
The state.
Implementations§
source§impl KnownCell
impl KnownCell
sourcepub const fn from_cell_data(data: CellData, gen: i32) -> Self
Available on crate feature read-rle
only.
pub const fn from_cell_data(data: CellData, gen: i32) -> Self
read-rle
only.sourcepub fn from_rles<I, L>(input: I) -> Result<Vec<Self>, RleError>where
I: Input<Lines = L>,
L: Input<Lines = L>,
Available on crate feature read-rle
only.
pub fn from_rles<I, L>(input: I) -> Result<Vec<Self>, RleError>where I: Input<Lines = L>, L: Input<Lines = L>,
read-rle
only.Get a list KnownCell
from multiple RLE’s in one string.
fn from_rles_iter<I, L>( rle: Rle<I>, known_cells: &mut Vec<Self>, gen: i32 ) -> Result<(), RleError>where I: Input<Lines = L>, L: Input<Lines = L>,
Available on crate feature
read-rle
only.Trait Implementations§
source§impl<'de> Deserialize<'de> for KnownCell
impl<'de> Deserialize<'de> for KnownCell
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 PartialEq for KnownCell
impl PartialEq for KnownCell
impl Copy for KnownCell
impl Eq for KnownCell
impl StructuralEq for KnownCell
impl StructuralPartialEq for KnownCell
Auto Trait Implementations§
impl RefUnwindSafe for KnownCell
impl Send for KnownCell
impl Sync for KnownCell
impl Unpin for KnownCell
impl UnwindSafe for KnownCell
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