Struct rlua::prelude::LuaScope [] [src]

pub struct LuaScope<'scope> { /* fields omitted */ }

Constructed by the Lua::scope method, allows temporarily passing to Lua userdata that is !Send, and callbacks that are !Send and not 'static.

See Lua::scope for more details.

Methods

impl<'scope> Scope<'scope>
[src]

[src]

Wraps a Rust function or closure, creating a callable Lua function handle to it.

This is a version of Lua::create_function that creates a callback which expires on scope drop. See Lua::scope for more details.

[src]

Wraps a Rust mutable closure, creating a callable Lua function handle to it.

This is a version of Lua::create_function_mut that creates a callback which expires on scope drop. See Lua::scope for more details.

[src]

Create a Lua userdata object from a custom userdata type.

This is a version of Lua::create_userdata that creates a userdata which expires on scope drop. See Lua::scope for more details.

Trait Implementations

impl<'scope> Drop for Scope<'scope>
[src]

[src]

Executes the destructor for this type. Read more