pub trait ResolverInterface {
// Required methods
unsafe fn load_symbol_unconstrainted(&self, name: &CStr) -> NonNull<c_void>;
unsafe fn load_function_unconstrainted(
&self,
name: &CStr,
) -> extern "system" fn();
}Required Methods§
Sourceunsafe fn load_symbol_unconstrainted(&self, name: &CStr) -> NonNull<c_void>
unsafe fn load_symbol_unconstrainted(&self, name: &CStr) -> NonNull<c_void>
Loads a symbol using the resolver, without any constraints on the symbol’s type.
§Safety
retrieved symbol must be valid value of type T.
Sourceunsafe fn load_function_unconstrainted(
&self,
name: &CStr,
) -> extern "system" fn()
unsafe fn load_function_unconstrainted( &self, name: &CStr, ) -> extern "system" fn()
Loads a function using the resolver, without any constraints on the function’s type.
§Safety
retrieved function must be valid function pointer of type F.
Trait Implementations§
Source§impl ResolverInterface for Box<dyn ResolverInterface>
impl ResolverInterface for Box<dyn ResolverInterface>
Implementations on Foreign Types§
Source§impl ResolverInterface for Box<dyn ResolverInterface>
impl ResolverInterface for Box<dyn ResolverInterface>
Implementors§
impl ResolverInterface for DeviceResolverImpl
Available on crate feature
Implements only.impl ResolverInterface for InstanceResolverImpl
Available on crate feature
Implements only.