Skip to content

Appropriate type for non-Rust userdata #672

Description

@s5bug

I'm working with MAME (I have to go through the Lua interface) and I want to make my life a little bit easier when working with MAME values. What's the proper way to represent them?

[MAME]> print(manager)
sol.mame_machine_manager*: 000001f553eba408
[MAME]> print(type(manager))
userdata

Is it with AnyUserData?

#[repr(transparent)]
pub struct MameMachineManager(LuaAnyUserData);

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