Derive Hash for XY

This commit is contained in:
Alexandre Bury 2017-10-08 15:56:03 -07:00
parent da5121d265
commit 7244896263

View File

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