pub struct CellularMap { /* private fields */ }

Implementations§

Create a new CellularMap instance.

Arguments
  • w - The desired map width.
  • h - The desired map height.
Example
use cellular_maps::CellularMap;

// Create a 30x30 celular map.
let mut cm = CellularMap::new(30,30);

Get the map width.

Get the map height.

Get the element in position <r,c>.

Initialize a random CellularMap.

Evolve the CellularMap according the automata rules.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.