pub trait Loader {
// Required method
fn load<'js>(
&mut self,
ctx: &Ctx<'js>,
name: &str,
attributes: Option<ImportAttributes<'js>>,
) -> Result<Module<'js>, Error>;
}Available on crate feature
loader only.Expand description
Module loader interface
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl<A, B, C, D, E, F, G, H> Loader for (A, B, C, D, E, F, G, H)
impl<A, B, C, D, E, F, G, H> Loader for (A, B, C, D, E, F, G, H)
Source§impl<A, B, C, D, E, F, G> Loader for (A, B, C, D, E, F, G)
impl<A, B, C, D, E, F, G> Loader for (A, B, C, D, E, F, G)
Source§impl<A, B, C, D, E, F> Loader for (A, B, C, D, E, F)
impl<A, B, C, D, E, F> Loader for (A, B, C, D, E, F)
Source§impl<A, B, C, D, E> Loader for (A, B, C, D, E)
impl<A, B, C, D, E> Loader for (A, B, C, D, E)
Source§impl<A, B, C, D> Loader for (A, B, C, D)
impl<A, B, C, D> Loader for (A, B, C, D)
Implementors§
impl Loader for BuiltinLoader
impl Loader for ModuleLoader
impl Loader for NativeLoader
impl Loader for ScriptLoader
Available on crate feature
std only.impl<D> Loader for Bundle<&'static Map<&'static str, D>>where
D: HasByteCode<'static>,
Available on crate feature
phf only.