mir-algorithm icon indicating copy to clipboard operation
mir-algorithm copied to clipboard

add ContainsProxied template

Open WebFreak001 opened this issue 3 years ago • 0 comments

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

I originally made https://github.com/libmir/mir-ion/pull/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.

WebFreak001 avatar Jun 24 '22 22:06 WebFreak001