@@ -158,62 +158,77 @@ pub trait Array: 'static + private::Sealed + Send + Sync + Debug + ArrayVisitor
158158}
159159
160160impl Array for Arc < dyn Array > {
161+ #[ inline]
161162 fn as_any ( & self ) -> & dyn Any {
162163 self . as_ref ( ) . as_any ( )
163164 }
164165
166+ #[ inline]
165167 fn to_array ( & self ) -> ArrayRef {
166168 self . clone ( )
167169 }
168170
171+ #[ inline]
169172 fn len ( & self ) -> usize {
170173 self . as_ref ( ) . len ( )
171174 }
172175
176+ #[ inline]
173177 fn dtype ( & self ) -> & DType {
174178 self . as_ref ( ) . dtype ( )
175179 }
176180
181+ #[ inline]
177182 fn encoding ( & self ) -> EncodingRef {
178183 self . as_ref ( ) . encoding ( )
179184 }
180185
186+ #[ inline]
181187 fn encoding_id ( & self ) -> EncodingId {
182188 self . as_ref ( ) . encoding_id ( )
183189 }
184190
191+ #[ inline]
185192 fn slice ( & self , range : Range < usize > ) -> ArrayRef {
186193 self . as_ref ( ) . slice ( range)
187194 }
188195
196+ #[ inline]
189197 fn scalar_at ( & self , index : usize ) -> Scalar {
190198 self . as_ref ( ) . scalar_at ( index)
191199 }
192200
201+ #[ inline]
193202 fn is_valid ( & self , index : usize ) -> bool {
194203 self . as_ref ( ) . is_valid ( index)
195204 }
196205
206+ #[ inline]
197207 fn is_invalid ( & self , index : usize ) -> bool {
198208 self . as_ref ( ) . is_invalid ( index)
199209 }
200210
211+ #[ inline]
201212 fn all_valid ( & self ) -> bool {
202213 self . as_ref ( ) . all_valid ( )
203214 }
204215
216+ #[ inline]
205217 fn all_invalid ( & self ) -> bool {
206218 self . as_ref ( ) . all_invalid ( )
207219 }
208220
221+ #[ inline]
209222 fn valid_count ( & self ) -> usize {
210223 self . as_ref ( ) . valid_count ( )
211224 }
212225
226+ #[ inline]
213227 fn invalid_count ( & self ) -> usize {
214228 self . as_ref ( ) . invalid_count ( )
215229 }
216230
231+ #[ inline]
217232 fn validity_mask ( & self ) -> Mask {
218233 self . as_ref ( ) . validity_mask ( )
219234 }
0 commit comments