diff --git a/src/xy.rs b/src/xy.rs index 3e22b46..51cba65 100644 --- a/src/xy.rs +++ b/src/xy.rs @@ -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 { /// X-axis value pub x: T,