Trait lazy_extern::LibSpecifier [] [src]

pub trait LibSpecifier {
    fn load_lib(spec: Self) -> Result<Library>;
}

Describes how to load a library from a given value for a lib X = Expr; statement in the lazy_extern! declaration. For &str or &OsStr it calls Library::new and passes the string as the library name to load. More complicated expressions are also allowed with brackets, as long as it evaluates to a type implementing LibSpecifier.

Required Methods

Load the library

Implementations on Foreign Types

impl<'a> LibSpecifier for &'a OsStr
[src]

[src]

Load the library

impl<'a> LibSpecifier for &'a str
[src]

[src]

Load the library

impl LibSpecifier for Result<Library>
[src]

Passthrough implementation

[src]

impl LibSpecifier for Library
[src]

Passthrough implementation

[src]

Implementors