Struct ca_formats::CellData[][src]

pub struct CellData {
    pub position: Coordinates,
    pub state: u8,
}

Position and state of a cell.

Rules with more than 256 states are not supported.

Fields

position: Coordinates

Coordinates of the cell.

state: u8

State of the cell.

For rules with only 2 states, 0 means dead and 1 means alive.

Trait Implementations

impl Clone for CellData[src]

impl Copy for CellData[src]

impl Debug for CellData[src]

impl Default for CellData[src]

impl Eq for CellData[src]

impl From<(i64, i64)> for CellData[src]

Convert the coordinates into a CellData with state 1.

impl Hash for CellData[src]

impl Ord for CellData[src]

impl PartialEq<CellData> for CellData[src]

impl PartialOrd<CellData> for CellData[src]

impl StructuralEq for CellData[src]

impl StructuralPartialEq for CellData[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> 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.