pub trait StrictEq<Rhs: ?Sized = Self> {
fn strict_eq(&self, other: &Rhs) -> bool;
#[inline]
fn strict_ne(&self, other: &Rhs) -> bool {
!self.strict_eq(other)
}
}
impl<T: StrictEq> StrictEq for Vec<T> {
fn strict_eq(&self, other: &Self) -> bool {
self.len() == other.len()
&& self.iter().zip(other.iter()).all(|(x, y)| x.strict_eq(y))
}
}