Add deriving TotalEq for Vector.
This commit is contained in:
parent
d95dd522de
commit
4a9999b11d
1 changed files with 1 additions and 1 deletions
|
@ -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> {
|
||||
|
|
Loading…
Reference in a new issue