You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/07/05 16:07:04 UTC

[GitHub] [arrow-rs] tustvold commented on issue #2001: [Discussion] Refactor the `Decimal`s by using constant generic.

tustvold commented on issue #2001:
URL: https://github.com/apache/arrow-rs/issues/2001#issuecomment-1175232892

   Not fully thought through, but you could maybe do something like
   
   ```
   struct Decimal128Type {}
   struct Decimal256Type {}
   
   trait DecimalType {
     ...
   }
   
   impl DecimalType for Decimal128Type {}
   impl DecimalType for Decimal256Type {}
   
   struct GenericDecimalArray<T: DecimalType> {}
   ```
   
   


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org