Add deriving TotalEq for Vector.

This commit is contained in:
Jake Greenfield 2014-04-25 05:54:00 -04:00
parent d95dd522de
commit 4a9999b11d

View file

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