Trait lib_battleship::common::Dimensional
[−]
[src]
pub trait Dimensional { fn width(&self) -> Dimension; fn height(&self) -> Dimension; }
Denotes a struct that has a width and height of type Dimension
.
Required Methods
fn width(&self) -> Dimension
Returns the width of this object.
fn height(&self) -> Dimension
Returns the height of this object.