```1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
```
``````use alloc::boxed::Box;
use alloc::vec::Vec;

use smallvec::SmallVec;

use crate::array::smallvec::SmallArray;
use crate::array::vec::Array;
use crate::array::INLINE_CAPACITY;

impl<T, U> PartialEq<SmallVec<[U; INLINE_CAPACITY]>> for SmallArray<T>
where
T: PartialEq<U>,
{
#[inline]
fn eq(&self, other: &SmallVec<[U; INLINE_CAPACITY]>) -> bool {
self[..] == other[..]
}
}

impl<T, U> PartialEq<SmallArray<U>> for SmallVec<[T; INLINE_CAPACITY]>
where
T: PartialEq<U>,
{
#[inline]
fn eq(&self, other: &SmallArray<U>) -> bool {
self[..] == other[..]
}
}

impl<T, U> PartialEq<Vec<U>> for SmallArray<T>
where
T: PartialEq<U>,
{
#[inline]
fn eq(&self, other: &Vec<U>) -> bool {
self[..] == other[..]
}
}

impl<T, U> PartialEq<SmallArray<U>> for Vec<T>
where
T: PartialEq<U>,
{
#[inline]
fn eq(&self, other: &SmallArray<U>) -> bool {
self[..] == other[..]
}
}

impl<T, U> PartialEq<[U]> for SmallArray<T>
where
T: PartialEq<U>,
{
#[inline]
fn eq(&self, other: &[U]) -> bool {
self[..] == other[..]
}
}

impl<T, U> PartialEq<SmallArray<U>> for [T]
where
T: PartialEq<U>,
{
#[inline]
fn eq(&self, other: &SmallArray<U>) -> bool {
self[..] == other[..]
}
}

impl<T, U> PartialEq<Box<[U]>> for SmallArray<T>
where
T: PartialEq<U>,
{
#[inline]
fn eq(&self, other: &Box<[U]>) -> bool {
self[..] == other[..]
}
}

impl<T, U> PartialEq<SmallArray<U>> for Box<[T]>
where
T: PartialEq<U>,
{
#[inline]
fn eq(&self, other: &SmallArray<U>) -> bool {
self[..] == other[..]
}
}

impl<T, U> PartialEq<SmallArray<U>> for Array<T>
where
T: PartialEq<U>,
{
#[inline]
fn eq(&self, other: &SmallArray<U>) -> bool {
self[..] == other[..]
}
}

impl<T, U> PartialEq<Array<U>> for SmallArray<T>
where
T: PartialEq<U>,
{
#[inline]
fn eq(&self, other: &Array<U>) -> bool {
self[..] == other[..]
}
}

macro_rules! __smallarray_T_eq_primitive_array {
(\$len:expr) => {
impl<T, U> PartialEq<[U; \$len]> for SmallArray<T>
where
T: PartialEq<U>,
{
#[inline]
fn eq(&self, other: &[U; \$len]) -> bool {
self[..] == other[..]
}
}

impl<T, U> PartialEq<SmallArray<U>> for [T; \$len]
where
T: PartialEq<U>,
{
#[inline]
fn eq(&self, other: &SmallArray<U>) -> bool {
self[..] == other[..]
}
}

impl<T, U> PartialEq<&[U; \$len]> for SmallArray<T>
where
T: PartialEq<U>,
{
#[inline]
fn eq(&self, other: &&[U; \$len]) -> bool {
self[..] == other[..]
}
}

impl<T, U> PartialEq<SmallArray<U>> for &[T; \$len]
where
T: PartialEq<U>,
{
#[inline]
fn eq(&self, other: &SmallArray<U>) -> bool {
self[..] == other[..]
}
}
};
}

__smallarray_T_eq_primitive_array!(0);
__smallarray_T_eq_primitive_array!(1);
__smallarray_T_eq_primitive_array!(2);
__smallarray_T_eq_primitive_array!(3);
__smallarray_T_eq_primitive_array!(4);
__smallarray_T_eq_primitive_array!(5);
__smallarray_T_eq_primitive_array!(6);
__smallarray_T_eq_primitive_array!(7);
__smallarray_T_eq_primitive_array!(8);
__smallarray_T_eq_primitive_array!(9);
__smallarray_T_eq_primitive_array!(10);
__smallarray_T_eq_primitive_array!(11);
__smallarray_T_eq_primitive_array!(12);
__smallarray_T_eq_primitive_array!(13);
__smallarray_T_eq_primitive_array!(14);
__smallarray_T_eq_primitive_array!(15);
__smallarray_T_eq_primitive_array!(16);
__smallarray_T_eq_primitive_array!(17);
__smallarray_T_eq_primitive_array!(18);
__smallarray_T_eq_primitive_array!(19);
__smallarray_T_eq_primitive_array!(20);
__smallarray_T_eq_primitive_array!(21);
__smallarray_T_eq_primitive_array!(22);
__smallarray_T_eq_primitive_array!(23);
__smallarray_T_eq_primitive_array!(24);
__smallarray_T_eq_primitive_array!(25);
__smallarray_T_eq_primitive_array!(26);
__smallarray_T_eq_primitive_array!(27);
__smallarray_T_eq_primitive_array!(28);
__smallarray_T_eq_primitive_array!(29);
__smallarray_T_eq_primitive_array!(30);
__smallarray_T_eq_primitive_array!(31);
__smallarray_T_eq_primitive_array!(32);
``````