Skip to content

Cannot transmute type parameters #15215

Description

@tbu-

It would be nice if there would be some way to std::mem::transmute in functions, even with type parameters.

Maybe the prototype of the transmute function could be changed to

fn transmute<T,U:Transmutable<T>>(x: T) -> U;

where Transmutable is a compiler-implemented type, like Send, Copy or Share.

Activity

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

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