Struct playdate_sys::ffi::PlaydateAPI
source · #[repr(C)]pub struct PlaydateAPI {
pub system: *const playdate_sys,
pub file: *const playdate_file,
pub graphics: *const playdate_graphics,
pub sprite: *const playdate_sprite,
pub display: *const playdate_display,
pub sound: *const playdate_sound,
pub lua: *const playdate_lua,
pub json: *const playdate_json,
pub scoreboards: *const playdate_scoreboards,
}
Fields§
§system: *const playdate_sys
§file: *const playdate_file
§graphics: *const playdate_graphics
§sprite: *const playdate_sprite
§display: *const playdate_display
§sound: *const playdate_sound
§lua: *const playdate_lua
§json: *const playdate_json
§scoreboards: *const playdate_scoreboards
Trait Implementations§
source§impl Clone for PlaydateAPI
impl Clone for PlaydateAPI
source§fn clone(&self) -> PlaydateAPI
fn clone(&self) -> PlaydateAPI
Returns a copy of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PlaydateAPI
impl Debug for PlaydateAPI
source§impl Default for PlaydateAPI
impl Default for PlaydateAPI
source§impl Hash for PlaydateAPI
impl Hash for PlaydateAPI
source§impl OkOrNullFnCtxErr<&'static PlaydateAPI> for ApiRef
impl OkOrNullFnCtxErr<&'static PlaydateAPI> for ApiRef
type Error = NullPtrError
fn ok_or_null_ctx( self, ctx: &'static str ) -> Result<&'static PlaydateAPI, NullPtrError>
source§impl OkOrNullFnErr<&'static PlaydateAPI> for ApiRef
impl OkOrNullFnErr<&'static PlaydateAPI> for ApiRef
type Error = NullPtrError
fn ok_or_null(self) -> Result<&'static PlaydateAPI, NullPtrError>
source§impl Ord for PlaydateAPI
impl Ord for PlaydateAPI
source§impl PartialEq for PlaydateAPI
impl PartialEq for PlaydateAPI
source§impl PartialOrd for PlaydateAPI
impl PartialOrd for PlaydateAPI
impl Copy for PlaydateAPI
impl Eq for PlaydateAPI
impl StructuralPartialEq for PlaydateAPI
Auto Trait Implementations§
impl Freeze for PlaydateAPI
impl RefUnwindSafe for PlaydateAPI
impl !Send for PlaydateAPI
impl !Sync for PlaydateAPI
impl Unpin for PlaydateAPI
impl UnwindSafe for PlaydateAPI
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T, U> Into<U> for Twhere
U: From<T>,
impl<T, U> Into<U> for Twhere
U: From<T>,
§impl<T> ToOwned for Twhere
T: Clone,
impl<T> ToOwned for Twhere
T: Clone,
§impl<T, U> TryFrom<U> for Twhere
U: Into<T>,
impl<T, U> TryFrom<U> for Twhere
U: Into<T>,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 36 bytes