Trait matrix::Position [] [src]

pub trait Position {
    fn row(&self) -> usize;
    fn column(&self) -> usize;

    fn coordinates(&self) -> (usize, usize) { ... }
}

A position.

Required Methods

fn row(&self) -> usize

Return the row.

fn column(&self) -> usize

Return the column.

Provided Methods

fn coordinates(&self) -> (usize, usize)

Return the row and column.

Implementors