//! # Loader.
//!//! A [`Loader`] is a simple trait that will be used to load a rhai module from a path.
/// A loader using the [`libloading`](https://github.com/nagisa/rust_libloading) crate.
#[cfg(feature ="libloading")]pubmodlibloading;/// A trait to implement an object that loads Rhai modules.
pubtraitLoader{/// Load a module from a path and apply it to a [`rhai::Engine`].
#[allow(clippy::missing_errors_doc)]fnload(&mutself,
path: impl AsRef<std::path::Path>,
)->Result<rhai::Shared<rhai::Module>, Box<rhai::EvalAltResult>>;}