Function emf_core_base_rs::global::module::add_module[][src]

pub fn add_module<O>(
    loader: &Loader<'static, O>,
    path: &impl AsRef<Path>
) -> Result<Module<'static, Owned>, Error> where
    O: MutableAccessIdentifier

Adds a new module.

Failure

Fails if loader or path is invalid or the type of the module can not be loaded with the loader.

Return

Module handle on success, error otherwise.