Consider sealing ArrowNativeType
#1028
Labels
enhancement
Any new improvement worthy of a entry in the changelog
ArrowNativeType
#1028
Is your feature request related to a problem or challenge? Please describe what you are trying to do.
The comments for
Buffer::typed_data
make the following pointMeaning that if some user crate implements ArrowNativeType for another type, using
Buffer::typed_data
(and others) will result in undefined behavior.Describe the solution you'd like
Ensure users of the
arrow
crate can notimpl ArrowNativeType
One way to do this would be to follow the
sealed trait
pattern here: https://rust-lang.github.io/api-guidelines/future-proofing.htmlAdditional context
This is extracted from a discussion with @jhorstmann on #996 (comment)
The text was updated successfully, but these errors were encountered: