pub trait Position {
fn row(&self) -> usize;
fn column(&self) -> usize;
fn coordinates(&self) -> (usize, usize) { ... }
}
Expand description
A position.
Required Methods§
Provided Methods§
sourcefn coordinates(&self) -> (usize, usize)
fn coordinates(&self) -> (usize, usize)
Return the row and column.