Struct mon_artist::grid::Pt [] [src]

pub struct Pt(pub i32, pub i32);

A Pt is a trivial representation of a (row, column) in the grid.

Note that we use one-based indices when referring to row or column; use the fn row_idx or col_idx methods to get 0-based indices.

Methods

impl Pt
[src]

impl Pt
[src]

Trait Implementations

impl PartialEq for Pt
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Pt
[src]

impl Copy for Pt
[src]

impl Clone for Pt
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Pt
[src]

Formats the value using the given formatter.

impl Hash for Pt
[src]

Feeds this value into the state given, updating the hasher as necessary.

Feeds a slice of this type into the state provided.

impl IntoIterator for Pt
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more