pub struct WasmtimeLinker { /* private fields */ }Trait Implementations§
Source§impl Linker<WasmtimeModule> for WasmtimeLinker
impl Linker<WasmtimeModule> for WasmtimeLinker
Source§fn import(
&mut self,
ns: impl Into<String>,
funcs: HashMap<String, Func>,
) -> Result<()>
fn import( &mut self, ns: impl Into<String>, funcs: HashMap<String, Func>, ) -> Result<()>
Import functions by namespace and names.
Source§fn wrap_raw(
&self,
f: impl Fn(WasmtimeLinkerHandle<'_>, i32, i32) -> Result<Vec<u8>> + Send + Sync + 'static,
) -> Func
fn wrap_raw( &self, f: impl Fn(WasmtimeLinkerHandle<'_>, i32, i32) -> Result<Vec<u8>> + Send + Sync + 'static, ) -> Func
Wrap a function with args in bytes.
Auto Trait Implementations§
impl Freeze for WasmtimeLinker
impl !RefUnwindSafe for WasmtimeLinker
impl Send for WasmtimeLinker
impl Sync for WasmtimeLinker
impl Unpin for WasmtimeLinker
impl !UnwindSafe for WasmtimeLinker
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more