rune_alloc/vec_deque/
macros.rs

1macro_rules! __impl_slice_eq1 {
2    ([$($vars:tt)*] $lhs:ty, $rhs:ty, $($constraints:tt)*) => {
3        impl<T, U, A: Allocator, $($vars)*> PartialEq<$rhs> for $lhs
4        where
5            T: PartialEq<U>,
6            $($constraints)*
7        {
8            fn eq(&self, other: &$rhs) -> bool {
9                if self.len() != other.len() {
10                    return false;
11                }
12                let (sa, sb) = self.as_slices();
13                let (oa, ob) = other[..].split_at(sa.len());
14                sa == oa && sb == ob
15            }
16        }
17    }
18}