You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem or challenge? Please describe what you are trying to do.
As discussed in #8873, we need to add a field lossy in CastOptions, so that we can support lossy cast in the variant-get(#8982 ), as this will add a field in the pub struct, so we need to add this in a major version.
Describe the solution you'd like
Add a field lossy in CastOptions and change the usages.
The cast kernel treats lossy = true(without the flag) from introducing this cast logic(2019), we'll keep it as now, so close this one. We can improve the logic in variant_get according to the logic in the cast kernel.
Activity
klion26 commentedon Jan 14, 2026
take
klion26 commentedon Jan 23, 2026
The cast kernel treats
lossy = true(without the flag) from introducing this cast logic(2019), we'll keep it as now, so close this one. We can improve the logic invariant_getaccording to the logic in the cast kernel.