Struct deno_core::ExtensionBuilder
source ·
[−]pub struct ExtensionBuilder { /* fields omitted */ }
Implementations
pub fn js(
&mut self,
js_files: Vec<(&'static str, Box<dyn Fn() -> Result<String, Error>>)>
) -> &mut Self
pub fn state<F>(&mut self, opstate_fn: F) -> &mut Self where
F: Fn(&mut OpState) -> Result<(), Error> + 'static,
Trait Implementations
Returns the “default value” for a type. Read more