koomen opened a new pull request #680:
URL: https://github.com/apache/arrow-rs/pull/680
# Which issue does this PR close?
Closes #598.
# Rationale for this change
<!---
Why are you proposing this change? If this is already explained clearly in
the issue then this section is not needed.
Explaining clearly why changes are proposed helps reviewers understand your
changes and offer better suggestions for fixes.
-->
# What changes are included in this PR?
Added an implementation of `FromIterator<&Option<Ptr>> where Ptr:
AsRef<str>` for `GenericStringArray<OffsetSize>`. The new implementation
converts iterated values into `&str` and wraps in an owned `Option`, then uses
the existing `FromIterator<Option<Ptr>>` implementation to `collect` into a
`GenericStringArray`.
# Are there any user-facing changes?
Users can now create string arrays from `&Option<&str>` iterators. No
breaking changes.
--
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]