pub struct DynLib { /* private fields */ }Implementations§
Source§impl DynLib
impl DynLib
Sourcepub unsafe fn load(path: &Path) -> Result<Self>
pub unsafe fn load(path: &Path) -> Result<Self>
Load a dynamic library from the given path.
§Safety
The target file must be a valid dynamic library for the current process.
pub fn path(&self) -> &Path
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DynLib
impl RefUnwindSafe for DynLib
impl Send for DynLib
impl Sync for DynLib
impl Unpin for DynLib
impl UnsafeUnpin for DynLib
impl UnwindSafe for DynLib
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more