[−][src]Struct minidl::Library
A loaded library handle.
Methods
impl Library
[src]
pub fn load(path: impl AsRef<Path>) -> Result<Self>
[src]
Load a library, forever.
OS | Behavior |
---|---|
Windows | minidlrary(path) |
Unix | dlopen(path, ...) |
pub unsafe fn sym<'a, T>(&self, name: impl AsRef<str>) -> Result<T>
[src]
Load a symbol from the library. Note that the symbol name must end with '\0'. Limiting yourself to basic ASCII is also likely wise.
Safety
This function implicitly transmutes! Use extreme caution.
Platform
OS | Behavior |
---|---|
Windows | GetProcAddress(..., name) |
Unix | dlsym(..., name) |
pub unsafe fn sym_opt<'a, T>(&self, name: impl AsRef<str>) -> Option<T>
[src]
Trait Implementations
impl Clone for Library
[src]
impl Copy for Library
[src]
impl Debug for Library
[src]
impl Eq for Library
[src]
impl Hash for Library
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for Library
[src]
fn cmp(&self, other: &Library) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<Library> for Library
[src]
impl PartialOrd<Library> for Library
[src]
fn partial_cmp(&self, other: &Library) -> Option<Ordering>
[src]
fn lt(&self, other: &Library) -> bool
[src]
fn le(&self, other: &Library) -> bool
[src]
fn gt(&self, other: &Library) -> bool
[src]
fn ge(&self, other: &Library) -> bool
[src]
impl Send for Library
[src]
impl StructuralEq for Library
[src]
impl StructuralPartialEq for Library
[src]
impl Sync for Library
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,