[][src]Trait spacebattleship::board::Coordinate

pub trait Coordinate: Debug + Clone + Eq + Hash { }

Trait for coordinates used in Dimensions. Requires Debug to enable certain common panic messages on misuse. Coordinates are treated as disposable and cheaply cloneable. If you need a complex coordinate type that isn't cheap to clone, you may want to wrap it in Rc or Arc.

Implementors

impl Coordinate for Coordinate2D[src]

Loading content...