Struct rlua::Scope [] [src]

pub struct Scope<'lua, '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<'lua, 'scope> Scope<'lua, '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<'lua, 'scope> Drop for Scope<'lua, 'scope>
[src]

[src]

Executes the destructor for this type. Read more