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

Add map support to GridRow #317

Merged
merged 2 commits into from
Jan 24, 2025
Merged

Add map support to GridRow #317

merged 2 commits into from
Jan 24, 2025

Conversation

mytdragon
Copy link
Contributor

I was in a situation I was returning a GridRow with a different Message type so I needed to map them to the type I needed. Since GridRow is basically a Vec<Element>, I just iterate the elements and call Element::map function.

Copy link
Collaborator

@genusistimelord genusistimelord left a comment

Choose a reason for hiding this comment

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

ill accept this change. looks good.

Copy link
Collaborator

@genusistimelord genusistimelord left a comment

Choose a reason for hiding this comment

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

thank you for formatting it.

@genusistimelord genusistimelord merged commit bd6b149 into iced-rs:main Jan 24, 2025
2 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