#[repr(C)]pub struct lua_Callbacks {
pub userdata: *mut c_void,
pub interrupt: Option<extern "C-unwind" fn(L: *mut lua_State, gc: c_int)>,
pub panic: Option<extern "C-unwind" fn(L: *mut lua_State, errcode: c_int)>,
pub userthread: Option<extern "C-unwind" fn(LP: *mut lua_State, L: *mut lua_State)>,
pub useratom: Option<extern "C-unwind" fn(s: *const c_char, l: usize) -> i16>,
pub debugbreak: Option<lua_Hook>,
pub debugstep: Option<lua_Hook>,
pub debuginterrupt: Option<lua_Hook>,
pub debugprotectederror: Option<lua_Hook>,
pub onallocate: Option<extern "C-unwind" fn(L: *mut lua_State, osize: usize, nsize: usize)>,
}Expand description
TODO: Document this struct.
Fields§
§userdata: *mut c_void§interrupt: Option<extern "C-unwind" fn(L: *mut lua_State, gc: c_int)>§panic: Option<extern "C-unwind" fn(L: *mut lua_State, errcode: c_int)>§userthread: Option<extern "C-unwind" fn(LP: *mut lua_State, L: *mut lua_State)>§useratom: Option<extern "C-unwind" fn(s: *const c_char, l: usize) -> i16>§debugbreak: Option<lua_Hook>§debugstep: Option<lua_Hook>§debuginterrupt: Option<lua_Hook>§debugprotectederror: Option<lua_Hook>§onallocate: Option<extern "C-unwind" fn(L: *mut lua_State, osize: usize, nsize: usize)>Auto Trait Implementations§
impl Freeze for lua_Callbacks
impl RefUnwindSafe for lua_Callbacks
impl !Send for lua_Callbacks
impl !Sync for lua_Callbacks
impl Unpin for lua_Callbacks
impl UnwindSafe for lua_Callbacks
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