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

    pub struct DynamicLibrary {
        // some fields omitted
    }

Deprecated since 1.5.0

: replaced with 'dylib' on crates.io

## Methods

### `impl DynamicLibrary`

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

Deprecated since 1.5.0

: replaced with 'dylib' on crates.io

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

#### `fn prepend_search_path(path: &Path)`

Deprecated since 1.5.0

: replaced with 'dylib' on crates.io

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

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

Deprecated since 1.5.0

: replaced with 'dylib' on crates.io

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`

Deprecated since 1.5.0

: replaced with 'dylib' on crates.io

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

#### `fn search_path() -> Vec<PathBuf>`

Deprecated since 1.5.0

: replaced with 'dylib' on crates.io

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

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

Deprecated since 1.5.0

: replaced with 'dylib' on crates.io

Accesses the value at the symbol of the dynamic library.

## Trait Implementations

### `impl Drop for DynamicLibrary`

#### `fn drop(&mut self)`

# Help

## Keyboard Shortcuts

?
  Show this help dialog
S
  Focus the search field
⇤
  Move up in search results
⇥
  Move down in search results
⏎
  Go to active search result

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize`)