Skip to content

A FromLuaOwned derive macro akin to FromLua #686

@sxyazi

Description

@sxyazi

I have a FromLuaOwned derive macro that's like mlua's FromLua, but it calls userdata.take() instead of userdata.borrow().clone().

It saves me from some code duplication - do you think it's worth adding into mlua proper? If one needs it won't have to implement it themselves and deal with creating a separate crate (proc macros need [lib] proc-macro = true).

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