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 dynamic_value::Reader::downcast_struct() #521

Merged
merged 3 commits into from
Sep 23, 2024
Merged

Conversation

dwrensha
Copy link
Member

@dwrensha dwrensha commented Sep 23, 2024

I wanted to make a blanket impl of the DowncastReader trait for all structs, but I don't see a way to get all the trait bounds/associated types to work out. So this is the next-best thing.

@dwrensha
Copy link
Member Author

@kvap does this work for you?

@kvap
Copy link

kvap commented Sep 23, 2024

@dwrensha this works perfectly, thanks!

@dwrensha dwrensha marked this pull request as ready for review September 23, 2024 16:00
@dwrensha dwrensha merged commit 0b7e946 into master Sep 23, 2024
8 checks passed
@dwrensha dwrensha deleted the downcast-struct branch September 23, 2024 18:20
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