Struct wasm_bridge_js::Linker
source · pub struct Linker<T> { /* private fields */ }
Implementations§
source§impl<T> Linker<T>
impl<T> Linker<T>
pub fn new(_engine: &Engine) -> Self
pub fn instantiate( &self, store: impl AsContextMut<Data = T>, module: &Module ) -> Result<Instance, Error>
pub fn func_wrap<Params, Results, F>( &mut self, module: &str, name: &str, func: F ) -> Result<&mut Self, Error>where F: IntoMakeClosure<T, Params, Results> + 'static,
Auto Trait Implementations§
impl<T> !RefUnwindSafe for Linker<T>
impl<T> !Send for Linker<T>
impl<T> !Sync for Linker<T>
impl<T> Unpin for Linker<T>
impl<T> !UnwindSafe for Linker<T>
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