Struct emf_core_base_rs::module::module_loader::NativeLoaderInternal[][src]

pub struct NativeLoaderInternal<'loader> { /* fields omitted */ }

Native library loader internal interface.

Implementations

impl<'a> NativeLoaderInternal<'a>[src]

pub unsafe fn get_native_module<'module, O>(
    &self,
    module: &'module InternalModule<O>
) -> Result<NativeModuleInstance<'module, O>, Error> where
    O: ImmutableAccessIdentifier
[src]

Fetches the native module handle.

Failure

The function fails if module is invalid.

Return

Native module handle.

Safety

The function crosses the ffi boundary. Direct usage of a NativeLoaderInternal may break some invariants of the module api, if not handled with care.

pub unsafe fn get_native_module_interface<'module, O>(
    &self,
    module: &'module InternalModule<O>
) -> Result<NativeModule<'module, O>, Error> where
    O: ImmutableAccessIdentifier
[src]

Fetches the native module interface.

Failure

The function fails if module is invalid.

Return

Native module interface.

Safety

The function crosses the ffi boundary. Direct usage of a NativeLoaderInternal may break some invariants of the module api, if not handled with care.

Methods from Deref<Target = NonNullConst<NativeModuleLoaderInterface>>

pub unsafe fn into_mut(&self) -> NonNull<T>[src]

Acquires a mutable version of the pointer.

Safety

It is undefined behavior if the underlying pointer is not already mutable.

pub unsafe fn as_ref(&self) -> &T[src]

Returns a shared reference to the value.

Safety

The same restrictions as NonNull::as_ref apply.

Trait Implementations

impl<'loader> Clone for NativeLoaderInternal<'loader>[src]

impl<'loader> Copy for NativeLoaderInternal<'loader>[src]

impl<'loader> Debug for NativeLoaderInternal<'loader>[src]

impl Deref for NativeLoaderInternal<'_>[src]

type Target = NonNullConst<NativeModuleLoaderInterface>

The resulting type after dereferencing.

impl DerefMut for NativeLoaderInternal<'_>[src]

impl<'loader> Eq for NativeLoaderInternal<'loader>[src]

impl<'a> ModuleLoaderAPI<'a> for NativeLoaderInternal<'a>[src]

type InternalLoader = Self

Type of the internal loader.

impl<'loader> Ord for NativeLoaderInternal<'loader>[src]

impl<'loader> PartialEq<NativeLoaderInternal<'loader>> for NativeLoaderInternal<'loader>[src]

impl<'loader> PartialOrd<NativeLoaderInternal<'loader>> for NativeLoaderInternal<'loader>[src]

impl Send for NativeLoaderInternal<'_>[src]

impl<'loader> StructuralEq for NativeLoaderInternal<'loader>[src]

impl<'loader> StructuralPartialEq for NativeLoaderInternal<'loader>[src]

impl Sync for NativeLoaderInternal<'_>[src]

Auto Trait Implementations

impl<'loader> RefUnwindSafe for NativeLoaderInternal<'loader>

impl<'loader> Unpin for NativeLoaderInternal<'loader>

impl<'loader> UnwindSafe for NativeLoaderInternal<'loader>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.