1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::ImpVec;
use orx_split_vec::SplitVec;

impl<T: PartialEq, U> PartialEq<U> for ImpVec<T>
where
    U: AsRef<[T]>,
{
    fn eq(&self, other: &U) -> bool {
        &self.split_vec.borrow() as &SplitVec<T> == other
    }
}
impl<T: PartialEq> PartialEq<ImpVec<T>> for ImpVec<T> {
    fn eq(&self, other: &ImpVec<T>) -> bool {
        &self.split_vec.borrow() as &SplitVec<T> == &other.split_vec.borrow() as &SplitVec<T>
    }
}
impl<T: PartialEq> Eq for ImpVec<T> {}