pub struct LuaStruct<T> { /* private fields */ }
Implementations§
Source§impl<T> LuaStruct<T>
impl<T> LuaStruct<T>
pub fn new(lua: *mut lua_State) -> LuaStruct<T>
pub fn new_light(lua: *mut lua_State) -> LuaStruct<T>
pub fn ensure_matetable(&mut self)
pub fn create(&mut self) -> &mut LuaStruct<T>
pub fn def<P>(&mut self, name: &str, param: P) -> &mut LuaStruct<T>where
P: LuaPush,
pub fn register( &mut self, name: &str, func: extern "C" fn(*mut lua_State) -> c_int, ) -> &mut LuaStruct<T>
Auto Trait Implementations§
impl<T> Freeze for LuaStruct<T>
impl<T> RefUnwindSafe for LuaStruct<T>where
T: RefUnwindSafe,
impl<T> !Send for LuaStruct<T>
impl<T> !Sync for LuaStruct<T>
impl<T> Unpin for LuaStruct<T>where
T: Unpin,
impl<T> UnwindSafe for LuaStruct<T>where
T: UnwindSafe,
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