Trait emf_core_base_rs::CBaseAPILoader[][src]

pub trait CBaseAPILoader<'interface> {
    type Interface: CBaseAccess<'interface>;
    unsafe fn fetch_interface(
        base_module: Option<NonNull<CBaseFFI>>,
        get_function_fn: GetFunctionFnFFI
    ) -> Self::Interface; }

Trait for loading the interface.

Associated Types

type Interface: CBaseAccess<'interface>[src]

Type of the interface.

Loading content...

Required methods

unsafe fn fetch_interface(
    base_module: Option<NonNull<CBaseFFI>>,
    get_function_fn: GetFunctionFnFFI
) -> Self::Interface
[src]

Fetches the emf-core-base interface.

Safety

The parameter get_function_fn must be able to accept base_module.

Panics

This function panics if it can not fetch the interface.

Loading content...

Implementors

impl<'interface> CBaseAPILoader<'interface> for CBase<'interface>[src]

type Interface = Self

unsafe fn fetch_interface(
    base_module: Option<NonNull<CBaseFFI>>,
    get_function_fn: GetFunctionFnFFI
) -> Self::Interface
[src]

Loading content...