#[repr(C)]
pub struct playdate_lua {
Show 32 fields pub addFunction: Option<unsafe extern "C" fn(f: lua_CFunction, name: *const c_char, outErr: *mut *const c_char) -> c_int>, pub registerClass: Option<unsafe extern "C" fn(name: *const c_char, reg: *const lua_reg, vals: *const luaL_Val, isstatic: c_int, outErr: *mut *const c_char) -> c_int>, pub pushFunction: Option<unsafe extern "C" fn(f: lua_CFunction)>, pub indexMetatable: Option<unsafe extern "C" fn() -> c_int>, pub stop: Option<unsafe extern "C" fn()>, pub start: Option<unsafe extern "C" fn()>, pub getArgCount: Option<unsafe extern "C" fn() -> c_int>, pub getArgType: Option<unsafe extern "C" fn(pos: c_int, outClass: *mut *const c_char) -> LuaType>, pub argIsNil: Option<unsafe extern "C" fn(pos: c_int) -> c_int>, pub getArgBool: Option<unsafe extern "C" fn(pos: c_int) -> c_int>, pub getArgInt: Option<unsafe extern "C" fn(pos: c_int) -> c_int>, pub getArgFloat: Option<unsafe extern "C" fn(pos: c_int) -> f32>, pub getArgString: Option<unsafe extern "C" fn(pos: c_int) -> *const c_char>, pub getArgBytes: Option<unsafe extern "C" fn(pos: c_int, outlen: *mut size_t) -> *const c_char>, pub getArgObject: Option<unsafe extern "C" fn(pos: c_int, type_: *mut c_char, outud: *mut *mut LuaUDObject) -> *mut c_void>, pub getBitmap: Option<unsafe extern "C" fn(pos: c_int) -> *mut LCDBitmap>, pub getSprite: Option<unsafe extern "C" fn(pos: c_int) -> *mut LCDSprite>, pub pushNil: Option<unsafe extern "C" fn()>, pub pushBool: Option<unsafe extern "C" fn(val: c_int)>, pub pushInt: Option<unsafe extern "C" fn(val: c_int)>, pub pushFloat: Option<unsafe extern "C" fn(val: f32)>, pub pushString: Option<unsafe extern "C" fn(str_: *const c_char)>, pub pushBytes: Option<unsafe extern "C" fn(str_: *const c_char, len: size_t)>, pub pushBitmap: Option<unsafe extern "C" fn(bitmap: *mut LCDBitmap)>, pub pushSprite: Option<unsafe extern "C" fn(sprite: *mut LCDSprite)>, pub pushObject: Option<unsafe extern "C" fn(obj: *mut c_void, type_: *mut c_char, nValues: c_int) -> *mut LuaUDObject>, pub retainObject: Option<unsafe extern "C" fn(obj: *mut LuaUDObject) -> *mut LuaUDObject>, pub releaseObject: Option<unsafe extern "C" fn(obj: *mut LuaUDObject)>, pub setObjectValue: Option<unsafe extern "C" fn(obj: *mut LuaUDObject, slot: c_int)>, pub getObjectValue: Option<unsafe extern "C" fn(obj: *mut LuaUDObject, slot: c_int) -> c_int>, pub callFunction_deprecated: Option<unsafe extern "C" fn(name: *const c_char, nargs: c_int)>, pub callFunction: Option<unsafe extern "C" fn(name: *const c_char, nargs: c_int, outerr: *mut *const c_char) -> c_int>,
}

Fields

addFunction: Option<unsafe extern "C" fn(f: lua_CFunction, name: *const c_char, outErr: *mut *const c_char) -> c_int>registerClass: Option<unsafe extern "C" fn(name: *const c_char, reg: *const lua_reg, vals: *const luaL_Val, isstatic: c_int, outErr: *mut *const c_char) -> c_int>pushFunction: Option<unsafe extern "C" fn(f: lua_CFunction)>indexMetatable: Option<unsafe extern "C" fn() -> c_int>stop: Option<unsafe extern "C" fn()>start: Option<unsafe extern "C" fn()>getArgCount: Option<unsafe extern "C" fn() -> c_int>getArgType: Option<unsafe extern "C" fn(pos: c_int, outClass: *mut *const c_char) -> LuaType>argIsNil: Option<unsafe extern "C" fn(pos: c_int) -> c_int>getArgBool: Option<unsafe extern "C" fn(pos: c_int) -> c_int>getArgInt: Option<unsafe extern "C" fn(pos: c_int) -> c_int>getArgFloat: Option<unsafe extern "C" fn(pos: c_int) -> f32>getArgString: Option<unsafe extern "C" fn(pos: c_int) -> *const c_char>getArgBytes: Option<unsafe extern "C" fn(pos: c_int, outlen: *mut size_t) -> *const c_char>getArgObject: Option<unsafe extern "C" fn(pos: c_int, type_: *mut c_char, outud: *mut *mut LuaUDObject) -> *mut c_void>getBitmap: Option<unsafe extern "C" fn(pos: c_int) -> *mut LCDBitmap>getSprite: Option<unsafe extern "C" fn(pos: c_int) -> *mut LCDSprite>pushNil: Option<unsafe extern "C" fn()>pushBool: Option<unsafe extern "C" fn(val: c_int)>pushInt: Option<unsafe extern "C" fn(val: c_int)>pushFloat: Option<unsafe extern "C" fn(val: f32)>pushString: Option<unsafe extern "C" fn(str_: *const c_char)>pushBytes: Option<unsafe extern "C" fn(str_: *const c_char, len: size_t)>pushBitmap: Option<unsafe extern "C" fn(bitmap: *mut LCDBitmap)>pushSprite: Option<unsafe extern "C" fn(sprite: *mut LCDSprite)>pushObject: Option<unsafe extern "C" fn(obj: *mut c_void, type_: *mut c_char, nValues: c_int) -> *mut LuaUDObject>retainObject: Option<unsafe extern "C" fn(obj: *mut LuaUDObject) -> *mut LuaUDObject>releaseObject: Option<unsafe extern "C" fn(obj: *mut LuaUDObject)>setObjectValue: Option<unsafe extern "C" fn(obj: *mut LuaUDObject, slot: c_int)>getObjectValue: Option<unsafe extern "C" fn(obj: *mut LuaUDObject, slot: c_int) -> c_int>callFunction_deprecated: Option<unsafe extern "C" fn(name: *const c_char, nargs: c_int)>callFunction: Option<unsafe extern "C" fn(name: *const c_char, nargs: c_int, outerr: *mut *const c_char) -> c_int>

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.