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 ContainsProxied template #420

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

WebFreak001
Copy link
Contributor

works like Contains, but in case there is a Proxy!T, it is also matched for T.

I originally made libmir/mir-ion#22 but while that was on there I redid the changes again and this came up as useful.

I would be opening a PR in mir-ion that uses this to support e.g. Variant!(int, ProxiedType) to allow possible implicit conversions, serdeProxyCast conversions and regular to!T conversion from deserialized type to proxy type through the variant.

works like Contains, but in case there is a Proxy!T, it is also matched for T.
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.

1 participant