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.
Methods
impl<'lua, 'scope> Scope<'lua, 'scope>[src]
fn create_function<'callback, A, R, F>(&self, func: F) -> Result<Function<'lua>> where
A: FromLuaMulti<'callback>,
R: ToLuaMulti<'callback>,
F: 'scope + Fn(&'callback Lua, A) -> Result<R>, [src]
A: FromLuaMulti<'callback>,
R: ToLuaMulti<'callback>,
F: 'scope + Fn(&'callback Lua, A) -> Result<R>,
fn create_function_mut<'callback, A, R, F>(
&self,
func: F
) -> Result<Function<'lua>> where
A: FromLuaMulti<'callback>,
R: ToLuaMulti<'callback>,
F: 'scope + FnMut(&'callback Lua, A) -> Result<R>, [src]
&self,
func: F
) -> Result<Function<'lua>> where
A: FromLuaMulti<'callback>,
R: ToLuaMulti<'callback>,
F: 'scope + FnMut(&'callback Lua, A) -> Result<R>,
fn create_userdata<T>(&self, data: T) -> Result<AnyUserData<'lua>> where
T: UserData, [src]
T: UserData,