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