Struct tile_net::TileNet [] [src]

pub struct TileNet<T> { /* fields omitted */ }

TileNet is the main class in this library

It represents a 2D space with dimensions rows x columns. Each index represents a point in space. Row 'n' and column 'm' denote the tile from x from n inclusive to n+1 exclusive, and y from m inclusive to m+1 exclusive.

use tile_net::TileNet;
#[derive(Clone, Debug, Default)]
struct Example(i32);
let my_net = TileNet::<Example>::new(10, 10);
println!("{:?}", my_net);

Methods

impl TileNet<usize>
[src]

impl<T> TileNet<T> where T: Clone
[src]

impl<T> TileNet<T> where T: Clone + Default
[src]

impl<T> TileNet<T> where T: Default
[src]

impl<T> TileNet<T>
[src]

Trait Implementations

impl<T: Clone> Clone for TileNet<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Debug> Debug for TileNet<T>
[src]

Formats the value using the given formatter.