Skip to content

mem::Discriminant does not imply Send (even for types that are Send) #45254

Closed
@archshift

Description

@archshift

Since the Discriminant of an enum variant is just an integer that represents its underlying index, it not implementing Send seems like a gap in the API.

Is there any underlying reason for it not doing so (aside from the PhantomData present inside)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions