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

Named child arrays #1710

Merged
merged 6 commits into from
Dec 18, 2024
Merged

Named child arrays #1710

merged 6 commits into from
Dec 18, 2024

Conversation

joseph-isaacs
Copy link
Member

No description provided.

@joseph-isaacs joseph-isaacs requested a review from a10y December 18, 2024 17:18

#[allow(dead_code)]
pub fn named_children(&self) -> Vec<(String, ArrayData)> {
let mut collector = NamedChildrenCollector::default();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we also add this to Owned and ArrayData similar to what we do for children() ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In theory we only need to add it to ArrayData. We move the impl to Owned/Viewed if it gets big and we don't want to inline it, but it only needs to be pub(super)

@joseph-isaacs joseph-isaacs enabled auto-merge (squash) December 18, 2024 19:06
}

impl NamedChildrenCollector {
pub fn children(self) -> Vec<(String, ArrayData)> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

into_inner is probably a bit more idiomatic name

@joseph-isaacs joseph-isaacs merged commit e64ab4a into develop Dec 18, 2024
20 checks passed
@joseph-isaacs joseph-isaacs deleted the ji/array-child-col branch December 18, 2024 19:32
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.

3 participants