File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -141,24 +141,28 @@ macro_rules! base_vector_traits {
141
141
impl Copy for $name { }
142
142
143
143
impl Clone for $name {
144
+ #[ inline]
144
145
fn clone( & self ) -> Self {
145
146
* self
146
147
}
147
148
}
148
149
149
150
impl Default for $name {
151
+ #[ inline]
150
152
fn default ( ) -> Self {
151
153
Self :: splat( <$type>:: default ( ) )
152
154
}
153
155
}
154
156
155
157
impl PartialEq for $name {
158
+ #[ inline]
156
159
fn eq( & self , other: & Self ) -> bool {
157
160
AsRef :: <[ $type] >:: as_ref( self ) == AsRef :: <[ $type] >:: as_ref( other)
158
161
}
159
162
}
160
163
161
164
impl PartialOrd for $name {
165
+ #[ inline]
162
166
fn partial_cmp( & self , other: & Self ) -> Option <core:: cmp:: Ordering > {
163
167
AsRef :: <[ $type] >:: as_ref( self ) . partial_cmp( AsRef :: <[ $type] >:: as_ref( other) )
164
168
}
@@ -213,12 +217,14 @@ macro_rules! integer_vector_traits {
213
217
impl Eq for $name { }
214
218
215
219
impl Ord for $name {
220
+ #[ inline]
216
221
fn cmp( & self , other: & Self ) -> core:: cmp:: Ordering {
217
222
AsRef :: <[ $type] >:: as_ref( self ) . cmp( AsRef :: <[ $type] >:: as_ref( other) )
218
223
}
219
224
}
220
225
221
226
impl core:: hash:: Hash for $name {
227
+ #[ inline]
222
228
fn hash<H >( & self , state: & mut H )
223
229
where
224
230
H : core:: hash:: Hasher
You can’t perform that action at this time.
0 commit comments