pub type ApiRef = Option<&'static PlaydateAPI>;Expand description
Reference to main (root) API endpoint.
Aliased Type§
pub enum ApiRef {
None,
Some(&'static PlaydateAPI),
}Variants§
Trait Implementations§
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>
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.