Function emf_core_base_rs::global::library::load[][src]

pub fn load<L, O>(
    _token: &mut LockToken<L>,
    loader: &Loader<'static, O>,
    path: &impl AsRef<Path>
) -> Result<Library<'static, Owned>, Error> where
    O: MutableAccessIdentifier

Loads a library. The resulting handle is unique.

Failure

The function fails if loader or path is invalid or the type of the library can not be loaded with the loader.

Return

Handle on success, error otherwise.