pub trait CBaseAPILoader<'interface> {
type Interface: CBaseAccess<'interface>;
// Required method
unsafe fn fetch_interface(
base_module: Option<NonNull<CBaseFFI>>,
get_function_fn: GetFunctionFnFFI,
) -> Self::Interface;
}Expand description
Trait for loading the interface.
Required Associated Types§
Sourcetype Interface: CBaseAccess<'interface>
type Interface: CBaseAccess<'interface>
Type of the interface.
Required Methods§
Sourceunsafe fn fetch_interface(
base_module: Option<NonNull<CBaseFFI>>,
get_function_fn: GetFunctionFnFFI,
) -> Self::Interface
unsafe fn fetch_interface( base_module: Option<NonNull<CBaseFFI>>, get_function_fn: GetFunctionFnFFI, ) -> Self::Interface
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.