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
source§impl<F> ImportBuilder<F>where
F: Invoke<ImportEntry>,
impl<F> ImportBuilder<F>where F: Invoke<ImportEntry>,
Trait Implementations§
Auto Trait Implementations§
impl<F> RefUnwindSafe for ImportBuilder<F>where F: RefUnwindSafe,
impl<F> Send for ImportBuilder<F>where F: Send,
impl<F> Sync for ImportBuilder<F>where F: Sync,
impl<F> Unpin for ImportBuilder<F>where F: Unpin,
impl<F> UnwindSafe for ImportBuilder<F>where F: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more