Implement Into<ArrayData>
for T: Array
#1979
Labels
arrow
Changes to the arrow crate
enhancement
Any new improvement worthy of a entry in the changelog
good first issue
Good for newcomers
help wanted
Is your feature request related to a problem or challenge? Please describe what you are trying to do.
The array implementations are just strongly typed wrappers around an
ArrayData
. It therefore makes sense that the conversion can be performed cheaply. Currently the only way to do this usesArray::data
andArrayData::clone
, the latter of which is not especially cheap.Describe the solution you'd like
I would like all
T: Array
toimpl Into<ArrayData>
. Additionally these implementations should provide aninto_data
member function to aid in type inference.Describe alternatives you've considered
We could not do this, but it is fairly common to see
array.data().clone()
which just seems unnecessaryThe text was updated successfully, but these errors were encountered: