Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds AsRef<[Element]> for Sequence, List, and SExp #841

Merged
merged 2 commits into from
Oct 8, 2024

Conversation

popematt
Copy link
Contributor

@popematt popematt commented Oct 8, 2024

Issue #, if available:

None.

Description of changes:

I was working on something else, and having a hard time coming up with a clean way to deal with an input that could be a Vec<Element> or Sequence. It makes it so much easier to write APIs that can accept a borrowed, ordered collections of Element if we can use AsRef<[Element]>.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@popematt popematt requested a review from zslayton October 8, 2024 20:19
@popematt popematt merged commit 14eb4ec into amazon-ion:main Oct 8, 2024
26 of 27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants