Skip to content

Cannot transmute type parameters #15215

Closed
@tbu-

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.

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