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

Returns the width of this object.

Returns the height of this object.

Implementors