Currently, PartialOrd is implemented as follows:
impl<T, A> PartialOrd<Vec<T, A>> for Vec<T, A> where
T: PartialOrd<T>,
A: Allocator,
{ ... }
Currently, PartialEq is implemented as follows:
impl<T, U, A> PartialEq<Vec<U, A>> for Vec<T, A> where
A: Allocator,
T: PartialEq<U>,
{ ... }
It would be great if we could implement PartialOrd like PartialEq is implemented, that is:
impl<T, U, A> PartialOrd<Vec<U, A>> for Vec<T, A> where
A: Allocator,
T: PartialOrd<U>,
{ ... }
Is there any reason this wouldn't be a good idea? If it sounds like a good idea, I can try making an RFC for it, although I've never done that before 0_o