Type Alias playdate_sys::ApiRef

source ·
pub type ApiRef = Option<&'static PlaydateAPI>;
Expand description

Reference to main (root) API endpoint.

Aliased Type§

enum ApiRef {
    None,
    Some(&'static PlaydateAPI),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(&'static PlaydateAPI)

Some value of type T.

Trait Implementations§

source§

impl OkOrNullFnCtxErr<&'static PlaydateAPI> for ApiRef

§

type Error = NullPtrError

source§

fn ok_or_null_ctx( self, ctx: &'static str ) -> Result<&'static PlaydateAPI, NullPtrError>

source§

impl OkOrNullFnErr<&'static PlaydateAPI> for ApiRef

§

type Error = NullPtrError

source§

fn ok_or_null(self) -> Result<&'static PlaydateAPI, NullPtrError>

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: 8 bytes

Size for each variant:

  • None: 0 bytes
  • Some: 8 bytes