Type Alias deno_core::ExtModuleLoaderCb
source · pub type ExtModuleLoaderCb = Box<dyn Fn(&ExtensionFileSource) -> Result<ModuleCode, Error>>;
Expand description
Function that can be passed to the ExtModuleLoader
that allows to
transpile sources before passing to V8.
Aliased Type§
struct ExtModuleLoaderCb(/* private fields */);
Trait Implementations§
1.8.0 · source§impl<T> Error for Box<T, Global>where
T: Error,
impl<T> Error for Box<T, Global>where T: Error,
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting