Skip to content

Statically assert that a given value is a specific variant of an enum #47

@jkshtj

Description

@jkshtj

I recently ran into a use case where I was passing down an enum type to a function and I needed that value to be a specific variant of the enum type. First, is it an anti-pattern? Second, if not, Is that something that we'd want to add to this crate?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions