var searchIndex = {}; searchIndex["hlua"] = {"doc":"","items":[[3,"Function","hlua","Opaque type containing a Rust function or closure.",null,null],[3,"InsideCallback","","Opaque type that represents the Lua context when inside a callback.",null,null],[3,"Lua","","Main object of the library.",null,null],[3,"PushGuard","","RAII guard for a value pushed on the stack.",null,null],[3,"LuaContext","","Opaque type that contains the raw Lua context.",null,null],[4,"LuaError","","Error that can happen when executing Lua code.",null,null],[13,"SyntaxError","","There was a syntax error when parsing the Lua code.",0,null],[13,"ExecutionError","","There was an error during execution of the Lua code\n(for example not enough parameters for a function call).",0,null],[13,"ReadError","","There was an IoError while reading the source code to execute.",0,null],[13,"WrongType","","The call to `execute` has requested the wrong type of data.",0,null],[5,"function0","","Wraps a type that implements `FnMut` so that it can be used by hlua.",null,{"inputs":[{"name":"z"}],"output":{"name":"function"}}],[5,"function1","","Wraps a type that implements `FnMut` so that it can be used by hlua.",null,{"inputs":[{"name":"z"}],"output":{"name":"function"}}],[5,"function2","","Wraps a type that implements `FnMut` so that it can be used by hlua.",null,{"inputs":[{"name":"z"}],"output":{"name":"function"}}],[5,"function3","","Wraps a type that implements `FnMut` so that it can be used by hlua.",null,{"inputs":[{"name":"z"}],"output":{"name":"function"}}],[5,"function4","","Wraps a type that implements `FnMut` so that it can be used by hlua.",null,{"inputs":[{"name":"z"}],"output":{"name":"function"}}],[5,"function5","","Wraps a type that implements `FnMut` so that it can be used by hlua.",null,{"inputs":[{"name":"z"}],"output":{"name":"function"}}],[5,"function6","","Wraps a type that implements `FnMut` so that it can be used by hlua.",null,{"inputs":[{"name":"z"}],"output":{"name":"function"}}],[5,"function7","","Wraps a type that implements `FnMut` so that it can be used by hlua.",null,{"inputs":[{"name":"z"}],"output":{"name":"function"}}],[5,"function8","","Wraps a type that implements `FnMut` so that it can be used by hlua.",null,{"inputs":[{"name":"z"}],"output":{"name":"function"}}],[5,"function9","","Wraps a type that implements `FnMut` so that it can be used by hlua.",null,{"inputs":[{"name":"z"}],"output":{"name":"function"}}],[5,"function10","","Wraps a type that implements `FnMut` so that it can be used by hlua.",null,{"inputs":[{"name":"z"}],"output":{"name":"function"}}],[0,"any","","",null,null],[4,"AnyLuaValue","hlua::any","Represents any value that can be stored by Lua",null,null],[13,"LuaString","","",1,null],[13,"LuaNumber","","",1,null],[13,"LuaBoolean","","",1,null],[13,"LuaArray","","",1,null],[13,"LuaNil","","",1,null],[13,"LuaOther","","The "Other" element is (hopefully) temporary and will be replaced by "Function" and "Userdata".\nA panic! will trigger if you try to push a Other.",1,null],[11,"eq","","",1,null],[11,"ne","","",1,null],[11,"fmt","","",1,null],[11,"clone","","",1,null],[11,"push_to_lua","","",1,null],[11,"lua_read_at_position","","",1,{"inputs":[{"name":"l"},{"name":"i32"}],"output":{"name":"result"}}],[0,"functions_read","hlua","",null,null],[3,"LuaFunction","hlua::functions_read","",null,null],[11,"call","","Calls the `LuaFunction`.",2,null],[11,"load_from_reader","","Builds a new `LuaFunction` from the code of a reader.",2,{"inputs":[{"name":"l"},{"name":"r"}],"output":{"name":"result"}}],[11,"load","","Builds a new `LuaFunction` from a raw string.",2,{"inputs":[{"name":"l"},{"name":"str"}],"output":{"name":"result"}}],[11,"lua_read_at_position","","",2,{"inputs":[{"name":"l"},{"name":"i32"}],"output":{"name":"result"}}],[0,"lua_tables","hlua","",null,null],[3,"LuaTable","hlua::lua_tables","Represents a table stored in the Lua context.",null,null],[3,"LuaTableIterator","","Iterator that enumerates the content of a Lua table.",null,null],[11,"as_lua","","",3,null],[11,"as_mut_lua","","",3,null],[11,"lua_read_at_position","","",3,{"inputs":[{"name":"l"},{"name":"i32"}],"output":{"name":"result"}}],[11,"as_lua","","",4,null],[11,"as_mut_lua","","",4,null],[11,"into_inner","","Destroys the LuaTable and returns its inner Lua context. Useful when it takes Lua by value.",3,null],[11,"iter","","Iterates over the elements inside the table.",3,null],[11,"get","","Loads a value in the table given its index.",3,null],[11,"into_get","","Loads a value in the table, with the result capturing the table by value.",3,null],[11,"set","","Inserts or modifies an elements of the table.",3,null],[11,"empty_array","","Inserts an empty array, then loads it.",3,null],[11,"get_or_create_metatable","","Obtains or create the metatable of the table.",3,null],[11,"next","","",4,null],[11,"drop","","",4,null],[0,"userdata","hlua","",null,null],[3,"UserdataOnStack","hlua::userdata","Represents a user data located inside the Lua context.",null,null],[5,"push_userdata","","Pushes an object as a user data.",null,{"inputs":[{"name":"t"},{"name":"l"},{"name":"f"}],"output":{"name":"pushguard"}}],[5,"read_userdata","","",null,{"inputs":[{"name":"insidecallback"},{"name":"i32"}],"output":{"name":"result"}}],[11,"lua_read_at_position","","",5,{"inputs":[{"name":"l"},{"name":"i32"}],"output":{"name":"result"}}],[11,"deref","","",5,null],[11,"deref_mut","","",5,null],[11,"push_to_lua","hlua","",6,null],[11,"push_to_lua","","",6,null],[11,"push_to_lua","","",6,null],[11,"push_to_lua","","",6,null],[11,"push_to_lua","","",6,null],[11,"push_to_lua","","",6,null],[11,"push_to_lua","","",6,null],[11,"push_to_lua","","",6,null],[11,"push_to_lua","","",6,null],[11,"push_to_lua","","",6,null],[11,"push_to_lua","","",6,null],[8,"AsLua","","Trait for objects that have access to a Lua context. When using a context returned by a\n`AsLua`, you are not allowed to modify the stack.",null,null],[10,"as_lua","","",7,null],[8,"AsMutLua","","Trait for objects that have access to a Lua context. You are allowed to modify the stack, but\nit must be in the same state as it was when you started.",null,null],[10,"as_mut_lua","","",8,null],[8,"Push","","Types that can be given to a Lua context, for example with `lua.set()` or as a return value\nof a function.",null,null],[10,"push_to_lua","","Pushes the value on the top of the stack.",9,null],[8,"LuaRead","","Types that can be obtained from a Lua context.",null,null],[11,"lua_read","","Reads the data from Lua.",10,{"inputs":[{"name":"l"}],"output":{"name":"result"}}],[10,"lua_read_at_position","","Reads the data from Lua at a given position.",10,{"inputs":[{"name":"l"},{"name":"i32"}],"output":{"name":"result"}}],[11,"into_inner","","Destroys the guard, popping the value. Returns the inner part,\nwhich returns access when using by-value capture.",11,null],[11,"clone","","",12,null],[11,"as_lua","","",13,null],[11,"as_mut_lua","","",13,null],[11,"as_lua","","",11,null],[11,"as_mut_lua","","",11,null],[11,"fmt","","",0,null],[11,"new","","Builds a new Lua context.",13,{"inputs":[],"output":{"name":"lua"}}],[11,"from_existing_state","","Takes an existing `lua_State` and build a Lua object from it.",13,null],[11,"openlibs","","Opens all standard Lua libraries.\nThis is done by calling `luaL_openlibs`.",13,null],[11,"execute","","Executes some Lua code on the context.",13,null],[11,"execute_from_reader","","Executes some Lua code on the context.",13,null],[11,"get","","Reads the value of a global variable.",13,null],[11,"into_get","","Reads the value of a global, capturing the context by value.",13,null],[11,"set","","Modifies the value of a global variable.",13,null],[11,"empty_array","","Inserts an empty array, then loads it.",13,null],[11,"drop","","",13,null],[11,"drop","","",11,null],[14,"implement_lua_push!","","",null,null],[14,"implement_lua_read!","","",null,null]],"paths":[[4,"LuaError"],[4,"AnyLuaValue"],[3,"LuaFunction"],[3,"LuaTable"],[3,"LuaTableIterator"],[3,"UserdataOnStack"],[3,"Function"],[8,"AsLua"],[8,"AsMutLua"],[8,"Push"],[8,"LuaRead"],[3,"PushGuard"],[3,"LuaContext"],[3,"Lua"]]}; initSearch(searchIndex);