Skip to content

Serde support for ToLua #82

Description

@tailhook

Hi, I want to implement support for ToLua for T:Serialze from serde. So you can lua_push just about anything :)

The problem I encountered is:

error[E0119]: conflicting implementations of trait `wrapper::convert::ToLua` for type `std::option::Option<unsafe extern "C" fn(*mut libc::c_void) -> i32>`:

Can we remove that implementation and make a newtype for it? The alternative is to make a wrapper for serde:

lua.push(SerdeWrapper(object))

Which, might be good too, but I still think it's superfluous. What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions