Enum sirpent::state::grids::GridEnum
[−]
[src]
pub enum GridEnum {
Hexagon(HexagonGrid),
Square(SquareGrid),
Triangle(TriangleGrid),
}Variants
Hexagon(HexagonGrid)Square(SquareGrid)Triangle(TriangleGrid)Trait Implementations
impl PartialEq for GridEnum[src]
fn eq(&self, __arg_0: &GridEnum) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &GridEnum) -> bool
This method tests for !=.
impl Clone for GridEnum[src]
fn clone(&self) -> GridEnum
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl Debug for GridEnum[src]
impl From<HexagonGrid> for GridEnum[src]
fn from(grid: HexagonGrid) -> GridEnum
Performs the conversion.
impl From<SquareGrid> for GridEnum[src]
fn from(grid: SquareGrid) -> GridEnum
Performs the conversion.
impl From<TriangleGrid> for GridEnum[src]
fn from(grid: TriangleGrid) -> GridEnum
Performs the conversion.