Skip to content

Use from_raw and into_raw instead of transmuting the box for callback ownership #20

@yupferris

Description

@yupferris

I saw this forum post today, and it's mentioned that using Box's from_raw and into_raw to go to/from a c-pointer is preferred to using transmute. I'm guessing if nothing else this is to make it more explicit what's going on.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions