Struct hlua::functions_read::LuaFunction
[−]
[src]
pub struct LuaFunction<L> { // some fields omitted }
Methods
impl<L> LuaFunction<L> where L: AsMutLua
[src]
fn call<'a, V>(&'a mut self) -> Result<V, LuaError> where V: LuaRead<PushGuard<&'a mut L>>
Calls the LuaFunction
.
fn load_from_reader<R>(lua: L, code: R) -> Result<LuaFunction<PushGuard<L>>, LuaError> where R: Read
Builds a new LuaFunction
from the code of a reader.
fn load(lua: L, code: &str) -> Result<LuaFunction<PushGuard<L>>, LuaError>
Builds a new LuaFunction
from a raw string.
Trait Implementations
impl<L> LuaRead<L> for LuaFunction<L> where L: AsMutLua
[src]
fn lua_read_at_position(lua: L, index: i32) -> Result<LuaFunction<L>, L>
Reads the data from Lua at a given position.
fn lua_read(lua: L) -> Result<Self, L>
Reads the data from Lua.