pub struct DynamicLibrary { /* private fields */ }
Implementations§
Source§impl DynamicLibrary
impl DynamicLibrary
Sourcepub fn open(filename: Option<&Path>) -> Result<DynamicLibrary, String>
pub fn open(filename: Option<&Path>) -> Result<DynamicLibrary, String>
Lazily open a dynamic library. When passed None it gives a handle to the calling process
Sourcepub fn prepend_search_path(path: &Path)
pub fn prepend_search_path(path: &Path)
Prepends a path to this process’s search path for dynamic libraries
Sourcepub fn create_path(path: &[PathBuf]) -> OsString
pub fn create_path(path: &[PathBuf]) -> OsString
From a slice of paths, create a new vector which is suitable to be an environment variable for this platforms dylib search path.
Sourcepub fn envvar() -> &'static str
pub fn envvar() -> &'static str
Returns the environment variable for this process’s dynamic library search path
Sourcepub fn search_path() -> Vec<PathBuf>
pub fn search_path() -> Vec<PathBuf>
Returns the current search path for dynamic libraries being used by this process
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DynamicLibrary
impl RefUnwindSafe for DynamicLibrary
impl !Send for DynamicLibrary
impl !Sync for DynamicLibrary
impl Unpin for DynamicLibrary
impl UnwindSafe for DynamicLibrary
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