Type Alias ApiRef

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

Reference to main (root) API endpoint.

Aliased Type§

pub 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

Source§

type Error = NullPtrError

Source§

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

Source§

impl OkOrNullFnErr<&'static PlaydateAPI> for ApiRef

Layout§

Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.