#[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 lua_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 usize) -> *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: usize)>, 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 setUserValue: Option<unsafe extern "C" fn(obj: *mut LuaUDObject, slot: c_uint)>, pub getUserValue: Option<unsafe extern "C" fn(obj: *mut LuaUDObject, slot: c_uint) -> 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 lua_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 usize) -> *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: usize)>§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)>§setUserValue: Option<unsafe extern "C" fn(obj: *mut LuaUDObject, slot: c_uint)>§getUserValue: Option<unsafe extern "C" fn(obj: *mut LuaUDObject, slot: c_uint) -> 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§

source§

impl Clone for playdate_lua

source§

fn clone(&self) -> playdate_lua

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for playdate_lua

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for playdate_lua

source§

fn default() -> playdate_lua

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

impl PartialEq<playdate_lua> for playdate_lua

source§

fn eq(&self, other: &playdate_lua) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for playdate_lua

source§

impl Eq for playdate_lua

source§

impl StructuralEq for playdate_lua

source§

impl StructuralPartialEq for playdate_lua

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

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

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.