Derive Eq for XY

This commit is contained in:
Alexandre Bury 2017-10-08 16:49:34 -07:00
parent 7df4b06ef8
commit 997895347c

View File

@ -3,7 +3,7 @@ use direction::Orientation;
use std::iter;
/// A generic structure with a value for each axis.
#[derive(Debug,Clone,Copy,PartialEq,Hash)]
#[derive(Debug,Clone,Copy,PartialEq,Eq,Hash)]
pub struct XY<T> {
/// X-axis value
pub x: T,