This should be renamed `contains` to stay in line with `~[T]`, and it should also be in its own `impl` block with an `Eq` bound on `T`. Right now you're requiring elements be `Eq` just to iterate over them which isn't necessary.