pub struct LibraryModule {
pub name: &'static str,
pub entries: Vec<(&'static str, LibraryEntry)>,
pub initializer: Option<fn(&mut LuaState) -> LuaResult<()>>,
}Expand description
A library module containing multiple functions and values
Fields§
§name: &'static str§entries: Vec<(&'static str, LibraryEntry)>§initializer: Option<fn(&mut LuaState) -> LuaResult<()>>Implementations§
Source§impl LibraryModule
impl LibraryModule
Trait Implementations§
Source§impl LuaLibrary for LibraryModule
impl LuaLibrary for LibraryModule
Source§fn install_vm(&self, vm: &mut LuaVM) -> LuaResult<()>
fn install_vm(&self, vm: &mut LuaVM) -> LuaResult<()>
Install this library into a low-level
LuaVM.Source§fn install_lua(&self, lua: &mut Lua) -> LuaResult<()>
fn install_lua(&self, lua: &mut Lua) -> LuaResult<()>
Install this library into the high-level
crate::Lua API.Auto Trait Implementations§
impl Freeze for LibraryModule
impl RefUnwindSafe for LibraryModule
impl Send for LibraryModule
impl Sync for LibraryModule
impl Unpin for LibraryModule
impl UnsafeUnpin for LibraryModule
impl UnwindSafe for LibraryModule
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