Skip to content

Access metatables of UserValue and Table #175

Closed
@hce

Description

@hce

Background: I wanted to implement a library function in rust called "is_callable". It should check whether a Lua value is (a) a function or (b) some Lua object with a metatable that contains a callable __call entry.

I was able to get the metatables of tables from rust/rlua, but not for other types of Lua values...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions