Struct std::dynamic_lib::DynamicLibrary [] [src]

pub struct DynamicLibrary {
    // some fields omitted
}
Unstable (dynamic_lib #27810)

: API has not been scrutinized and is highly likely to either disappear or change

Methods

impl DynamicLibrary

fn open(filename: Option<&Path>) -> Result<DynamicLibrary, String>

Unstable (dynamic_lib #27810)

: API has not been scrutinized and is highly likely to either disappear or change

Lazily open a dynamic library. When passed None it gives a handle to the calling process

fn prepend_search_path(path: &Path)

Unstable (dynamic_lib #27810)

: API has not been scrutinized and is highly likely to either disappear or change

Prepends a path to this process's search path for dynamic libraries

fn create_path(path: &[PathBuf]) -> OsString

Unstable (dynamic_lib #27810)

: API has not been scrutinized and is highly likely to either disappear or change

From a slice of paths, create a new vector which is suitable to be an environment variable for this platforms dylib search path.

fn envvar() -> &'static str

Unstable (dynamic_lib #27810)

: API has not been scrutinized and is highly likely to either disappear or change

Returns the environment variable for this process's dynamic library search path

fn search_path() -> Vec<PathBuf>

Unstable (dynamic_lib #27810)

: API has not been scrutinized and is highly likely to either disappear or change

Returns the current search path for dynamic libraries being used by this process

unsafe fn symbol<T>(&self, symbol: &str) -> Result<*mut T, String>

Unstable (dynamic_lib #27810)

: API has not been scrutinized and is highly likely to either disappear or change

Accesses the value at the symbol of the dynamic library.

Trait Implementations

impl Drop for DynamicLibrary

fn drop(&mut self)