Merge pull request #63 from xales/add-totaleq

Add deriving TotalEq for Vector.
This commit is contained in:
Corey Richardson 2014-04-25 06:11:15 -04:00
commit 9d618c37b3

View file

@ -80,7 +80,7 @@ pub trait Vector
// Utility macro for generating associated functions for the vectors
macro_rules! vec(
($Self:ident <$S:ident> { $($field:ident),+ }, $n:expr) => (
#[deriving(Eq, Clone, Hash)]
#[deriving(Eq, TotalEq, Clone, Hash)]
pub struct $Self<S> { $(pub $field: S),+ }
impl<$S: Primitive> $Self<$S> {