Skip to content

Add lossy flag in CastOptions #9172

Closed
Closed

Description

@klion26

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.

Describe alternatives you've considered

Additional context

Activity

  1. added
    enhancement
    on Jan 14, 2026
  2. klion26 commented on Jan 14, 2026

    @klion26
    MemberAuthor

    take

  3. klion26 commented on Jan 23, 2026

    @klion26
    MemberAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions