Struct parity_wasm::builder::ImportBuilder
source · pub struct ImportBuilder<F = Identity> { /* private fields */ }
Expand description
Import builder
Implementations§
source§impl ImportBuilder
impl ImportBuilder
source§impl<F> ImportBuilder<F>
impl<F> ImportBuilder<F>
sourcepub fn with_callback(callback: F) -> Self
pub fn with_callback(callback: F) -> Self
New import builder with callback (in chained context)
sourcepub fn path(self, module: &str, field: &str) -> Self
pub fn path(self, module: &str, field: &str) -> Self
Set/override both module name and field name
sourcepub fn with_external(self, external: External) -> Self
pub fn with_external(self, external: External) -> Self
Set/override external mapping for this import