pub struct LuaModule {
pub requires: Vec<(String, String)>,
pub local_decls: Vec<LuaStmt>,
pub functions: Vec<LuaFunction>,
pub main_block: Vec<LuaStmt>,
}Expand description
A complete Lua module / script.
Fields§
§requires: Vec<(String, String)>require imports: local modname = require("modname")
local_decls: Vec<LuaStmt>Top-level local declarations (before functions)
functions: Vec<LuaFunction>Top-level function definitions
main_block: Vec<LuaStmt>Main block statements (executed at top level)
Implementations§
Trait Implementations§
impl StructuralPartialEq for LuaModule
Auto Trait Implementations§
impl Freeze for LuaModule
impl RefUnwindSafe for LuaModule
impl Send for LuaModule
impl Sync for LuaModule
impl Unpin for LuaModule
impl UnsafeUnpin for LuaModule
impl UnwindSafe for LuaModule
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more