alamb commented on issue #1128:
URL: https://github.com/apache/arrow-rs/issues/1128#issuecomment-1004742974


   Another challenge for
   
   ```
   fn as_primitive_array<'a, T>(arr: &'a impl AsRef<dyn Array>) -> &'a 
PrimitiveArray<T>
   ```
   
   Is that I think all the existing callsites like 
`as_primtive_array<Int8Type>(&arr)` need to be changed to be 
`as_primtive_array<'_, Int8Type>(&arr)` or something
   
   I like the `Borrow` idea -- in 
https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=98ebefb3a35cd911c9a355c136cb14af
 -- I'll try that maybe later today and see what it looks like


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to