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
Implementations on Foreign Types
impl<'a> LibSpecifier for &'a OsStr
[src]
impl<'a> LibSpecifier for &'a str
[src]
impl LibSpecifier for Result<Library>
[src]
Passthrough implementation
impl LibSpecifier for Library
[src]
Passthrough implementation