#[non_exhaustive]pub struct Api {
pub system: System,
pub display: Display,
pub graphics: Graphics,
pub file: File,
pub sound: Sound,
}Expand description
Apis used to access the Playdate device’s display, sound, files, clock, menus, etc.
This type is passed as a parameter to the #[main] function of the game.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.system: System§display: Display§graphics: Graphics§file: File§sound: SoundTrait Implementations§
Auto Trait Implementations§
impl !Freeze for Api
impl !RefUnwindSafe for Api
impl !Send for Api
impl !Sync for Api
impl Unpin for Api
impl !UnwindSafe for Api
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