Struct emf_core_base_rs::library::library_loader::NativeLoader [−][src]
pub struct NativeLoader<'loader> { /* fields omitted */ }
Native library loader.
Methods from Deref<Target = NonNullConst<LibraryLoaderInterface>>
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]
Trait Implementations
impl<'loader> Clone for NativeLoader<'loader>
[src]
impl<'loader> Clone for NativeLoader<'loader>
[src]fn clone(&self) -> NativeLoader<'loader>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'loader> Copy for NativeLoader<'loader>
[src]
impl<'loader> Copy for NativeLoader<'loader>
[src]impl<'loader> Debug for NativeLoader<'loader>
[src]
impl<'loader> Debug for NativeLoader<'loader>
[src]impl Deref for NativeLoader<'_>
[src]
impl Deref for NativeLoader<'_>
[src]type Target = NonNullConst<LibraryLoaderInterface>
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
impl<'loader> Eq for NativeLoader<'loader>
[src]
impl<'loader> Eq for NativeLoader<'loader>
[src]impl LibraryLoaderABICompat for NativeLoader<'_>
[src]
impl LibraryLoaderABICompat for NativeLoader<'_>
[src]impl<'a> LibraryLoaderAPI<'a> for NativeLoader<'a>
[src]
impl<'a> LibraryLoaderAPI<'a> for NativeLoader<'a>
[src]type InternalLoader = NativeLoaderInternal<'a>
Type of the internal loader.
fn to_interface(&self) -> NonNullConst<LibraryLoaderInterface>
[src]
unsafe fn from_interface(
interface: NonNullConst<LibraryLoaderInterface>
) -> Self
[src]
interface: NonNullConst<LibraryLoaderInterface>
) -> Self
unsafe fn from_void_ptr(interface: NonNullConst<c_void>) -> Self
[src]
unsafe fn load(
&mut self,
path: &impl AsRef<Path>
) -> Result<InternalLibrary<Owned>, Error>
[src]
&mut self,
path: &impl AsRef<Path>
) -> Result<InternalLibrary<Owned>, Error>
unsafe fn unload(
&mut self,
internal: InternalLibrary<Owned>
) -> Result<(), Error>
[src]
&mut self,
internal: InternalLibrary<Owned>
) -> Result<(), Error>
unsafe fn get_data_symbol<O, U>(
&self,
internal: &InternalLibrary<O>,
symbol: &impl AsRef<CStr>,
caster: impl FnOnce(NonNullConst<c_void>) -> &'a U
) -> Result<Symbol<'a, &'a U>, Error> where
O: ImmutableAccessIdentifier,
[src]
&self,
internal: &InternalLibrary<O>,
symbol: &impl AsRef<CStr>,
caster: impl FnOnce(NonNullConst<c_void>) -> &'a U
) -> Result<Symbol<'a, &'a U>, Error> where
O: ImmutableAccessIdentifier,
unsafe fn get_function_symbol<O, U>(
&self,
internal: &InternalLibrary<O>,
symbol: &impl AsRef<CStr>,
caster: impl FnOnce(CBaseFn) -> U
) -> Result<Symbol<'a, U>, Error> where
O: ImmutableAccessIdentifier,
[src]
&self,
internal: &InternalLibrary<O>,
symbol: &impl AsRef<CStr>,
caster: impl FnOnce(CBaseFn) -> U
) -> Result<Symbol<'a, U>, Error> where
O: ImmutableAccessIdentifier,
unsafe fn get_internal_interface(&self) -> Self::InternalLoader
[src]
impl<'loader> Ord for NativeLoader<'loader>
[src]
impl<'loader> Ord for NativeLoader<'loader>
[src]impl<'loader> PartialEq<NativeLoader<'loader>> for NativeLoader<'loader>
[src]
impl<'loader> PartialEq<NativeLoader<'loader>> for NativeLoader<'loader>
[src]fn eq(&self, other: &NativeLoader<'loader>) -> bool
[src]
fn ne(&self, other: &NativeLoader<'loader>) -> bool
[src]
impl<'loader> PartialOrd<NativeLoader<'loader>> for NativeLoader<'loader>
[src]
impl<'loader> PartialOrd<NativeLoader<'loader>> for NativeLoader<'loader>
[src]fn partial_cmp(&self, other: &NativeLoader<'loader>) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn lt(&self, other: &Rhs) -> bool#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn le(&self, other: &Rhs) -> bool#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn gt(&self, other: &Rhs) -> bool#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
pub fn ge(&self, other: &Rhs) -> boolimpl<'loader> StructuralEq for NativeLoader<'loader>
[src]
impl<'loader> StructuralEq for NativeLoader<'loader>
[src]impl<'loader> StructuralPartialEq for NativeLoader<'loader>
[src]
impl<'loader> StructuralPartialEq for NativeLoader<'loader>
[src]Auto Trait Implementations
impl<'loader> RefUnwindSafe for NativeLoader<'loader>
impl<'loader> RefUnwindSafe for NativeLoader<'loader>
impl<'loader> Send for NativeLoader<'loader>
impl<'loader> Send for NativeLoader<'loader>
impl<'loader> Sync for NativeLoader<'loader>
impl<'loader> Sync for NativeLoader<'loader>
impl<'loader> Unpin for NativeLoader<'loader>
impl<'loader> Unpin for NativeLoader<'loader>
impl<'loader> UnwindSafe for NativeLoader<'loader>
impl<'loader> UnwindSafe for NativeLoader<'loader>