Skip to content

Why does create_function specify 'static? #56

Closed
@dotellie

Description

@dotellie

When playing around trying to make a prototype for a system I'm developing, I found that I bumped into a wall when using Lua.create_function. It has a lifetime bound specified as 'static which caused trouble, but when I tried changing it to 'lua it worked and it doesn't seem to have caused trouble elsewhere. So my question is why the boundary is 'static instead of 'lua. I'm pretty new to Rust so I may have missed something very obvious here, but I thought I'd ask anyway.

Thanks!

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