Struct marine_wasm_backend_traits::function::WithEnv
source · pub struct WithEnv {}
Expand description
An indicator of using ImportCallContext argument.
Trait Implementations§
source§impl<WB, F> IntoFunc<WB, (), (), WithEnv> for F
impl<WB, F> IntoFunc<WB, (), (), WithEnv> for F
fn into_func( self, ctx: &mut impl AsContextMut<WB> ) -> <WB as WasmBackend>::HostFunction
source§impl<WB, F> IntoFunc<WB, (), i32, WithEnv> for Fwhere
WB: WasmBackend,
F: Fn(<WB as WasmBackend>::ImportCallContext<'_>) -> i32 + Send + Sync + 'static,
impl<WB, F> IntoFunc<WB, (), i32, WithEnv> for Fwhere
WB: WasmBackend,
F: Fn(<WB as WasmBackend>::ImportCallContext<'_>) -> i32 + Send + Sync + 'static,
fn into_func( self, ctx: &mut impl AsContextMut<WB> ) -> <WB as WasmBackend>::HostFunction
source§impl<WB, F> IntoFunc<WB, (i32,), (), WithEnv> for Fwhere
WB: WasmBackend,
F: Fn(<WB as WasmBackend>::ImportCallContext<'_>, i32) + Send + Sync + 'static,
impl<WB, F> IntoFunc<WB, (i32,), (), WithEnv> for Fwhere
WB: WasmBackend,
F: Fn(<WB as WasmBackend>::ImportCallContext<'_>, i32) + Send + Sync + 'static,
fn into_func( self, ctx: &mut impl AsContextMut<WB> ) -> <WB as WasmBackend>::HostFunction
source§impl<WB, F> IntoFunc<WB, (i32,), i32, WithEnv> for Fwhere
WB: WasmBackend,
F: Fn(<WB as WasmBackend>::ImportCallContext<'_>, i32) -> i32 + Send + Sync + 'static,
impl<WB, F> IntoFunc<WB, (i32,), i32, WithEnv> for Fwhere
WB: WasmBackend,
F: Fn(<WB as WasmBackend>::ImportCallContext<'_>, i32) -> i32 + Send + Sync + 'static,
fn into_func( self, ctx: &mut impl AsContextMut<WB> ) -> <WB as WasmBackend>::HostFunction
source§impl<WB, F> IntoFunc<WB, (i32, i32), (), WithEnv> for Fwhere
WB: WasmBackend,
F: Fn(<WB as WasmBackend>::ImportCallContext<'_>, i32, i32) + Send + Sync + 'static,
impl<WB, F> IntoFunc<WB, (i32, i32), (), WithEnv> for Fwhere
WB: WasmBackend,
F: Fn(<WB as WasmBackend>::ImportCallContext<'_>, i32, i32) + Send + Sync + 'static,
fn into_func( self, ctx: &mut impl AsContextMut<WB> ) -> <WB as WasmBackend>::HostFunction
source§impl<WB, F> IntoFunc<WB, (i32, i32), i32, WithEnv> for Fwhere
WB: WasmBackend,
F: Fn(<WB as WasmBackend>::ImportCallContext<'_>, i32, i32) -> i32 + Send + Sync + 'static,
impl<WB, F> IntoFunc<WB, (i32, i32), i32, WithEnv> for Fwhere
WB: WasmBackend,
F: Fn(<WB as WasmBackend>::ImportCallContext<'_>, i32, i32) -> i32 + Send + Sync + 'static,
fn into_func( self, ctx: &mut impl AsContextMut<WB> ) -> <WB as WasmBackend>::HostFunction
source§impl<WB, F> IntoFunc<WB, (i32, i32, i32), (), WithEnv> for Fwhere
WB: WasmBackend,
F: Fn(<WB as WasmBackend>::ImportCallContext<'_>, i32, i32, i32) + Send + Sync + 'static,
impl<WB, F> IntoFunc<WB, (i32, i32, i32), (), WithEnv> for Fwhere
WB: WasmBackend,
F: Fn(<WB as WasmBackend>::ImportCallContext<'_>, i32, i32, i32) + Send + Sync + 'static,
fn into_func( self, ctx: &mut impl AsContextMut<WB> ) -> <WB as WasmBackend>::HostFunction
source§impl<WB, F> IntoFunc<WB, (i32, i32, i32), i32, WithEnv> for Fwhere
WB: WasmBackend,
F: Fn(<WB as WasmBackend>::ImportCallContext<'_>, i32, i32, i32) -> i32 + Send + Sync + 'static,
impl<WB, F> IntoFunc<WB, (i32, i32, i32), i32, WithEnv> for Fwhere
WB: WasmBackend,
F: Fn(<WB as WasmBackend>::ImportCallContext<'_>, i32, i32, i32) -> i32 + Send + Sync + 'static,
fn into_func( self, ctx: &mut impl AsContextMut<WB> ) -> <WB as WasmBackend>::HostFunction
source§impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32), (), WithEnv> for Fwhere
WB: WasmBackend,
F: Fn(<WB as WasmBackend>::ImportCallContext<'_>, i32, i32, i32, i32) + Send + Sync + 'static,
impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32), (), WithEnv> for Fwhere
WB: WasmBackend,
F: Fn(<WB as WasmBackend>::ImportCallContext<'_>, i32, i32, i32, i32) + Send + Sync + 'static,
fn into_func( self, ctx: &mut impl AsContextMut<WB> ) -> <WB as WasmBackend>::HostFunction
source§impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32), i32, WithEnv> for Fwhere
WB: WasmBackend,
F: Fn(<WB as WasmBackend>::ImportCallContext<'_>, i32, i32, i32, i32) -> i32 + Send + Sync + 'static,
impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32), i32, WithEnv> for Fwhere
WB: WasmBackend,
F: Fn(<WB as WasmBackend>::ImportCallContext<'_>, i32, i32, i32, i32) -> i32 + Send + Sync + 'static,
fn into_func( self, ctx: &mut impl AsContextMut<WB> ) -> <WB as WasmBackend>::HostFunction
source§impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32), (), WithEnv> for Fwhere
WB: WasmBackend,
F: Fn(<WB as WasmBackend>::ImportCallContext<'_>, i32, i32, i32, i32, i32) + Send + Sync + 'static,
impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32), (), WithEnv> for Fwhere
WB: WasmBackend,
F: Fn(<WB as WasmBackend>::ImportCallContext<'_>, i32, i32, i32, i32, i32) + Send + Sync + 'static,
fn into_func( self, ctx: &mut impl AsContextMut<WB> ) -> <WB as WasmBackend>::HostFunction
source§impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32), i32, WithEnv> for Fwhere
WB: WasmBackend,
F: Fn(<WB as WasmBackend>::ImportCallContext<'_>, i32, i32, i32, i32, i32) -> i32 + Send + Sync + 'static,
impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32), i32, WithEnv> for Fwhere
WB: WasmBackend,
F: Fn(<WB as WasmBackend>::ImportCallContext<'_>, i32, i32, i32, i32, i32) -> i32 + Send + Sync + 'static,
fn into_func( self, ctx: &mut impl AsContextMut<WB> ) -> <WB as WasmBackend>::HostFunction
source§impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32), (), WithEnv> for Fwhere
WB: WasmBackend,
F: Fn(<WB as WasmBackend>::ImportCallContext<'_>, i32, i32, i32, i32, i32, i32) + Send + Sync + 'static,
impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32), (), WithEnv> for Fwhere
WB: WasmBackend,
F: Fn(<WB as WasmBackend>::ImportCallContext<'_>, i32, i32, i32, i32, i32, i32) + Send + Sync + 'static,
fn into_func( self, ctx: &mut impl AsContextMut<WB> ) -> <WB as WasmBackend>::HostFunction
source§impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32), i32, WithEnv> for Fwhere
WB: WasmBackend,
F: Fn(<WB as WasmBackend>::ImportCallContext<'_>, i32, i32, i32, i32, i32, i32) -> i32 + Send + Sync + 'static,
impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32), i32, WithEnv> for Fwhere
WB: WasmBackend,
F: Fn(<WB as WasmBackend>::ImportCallContext<'_>, i32, i32, i32, i32, i32, i32) -> i32 + Send + Sync + 'static,
fn into_func( self, ctx: &mut impl AsContextMut<WB> ) -> <WB as WasmBackend>::HostFunction
source§impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32), (), WithEnv> for Fwhere
WB: WasmBackend,
F: Fn(<WB as WasmBackend>::ImportCallContext<'_>, i32, i32, i32, i32, i32, i32, i32) + Send + Sync + 'static,
impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32), (), WithEnv> for Fwhere
WB: WasmBackend,
F: Fn(<WB as WasmBackend>::ImportCallContext<'_>, i32, i32, i32, i32, i32, i32, i32) + Send + Sync + 'static,
fn into_func( self, ctx: &mut impl AsContextMut<WB> ) -> <WB as WasmBackend>::HostFunction
source§impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32), i32, WithEnv> for Fwhere
WB: WasmBackend,
F: Fn(<WB as WasmBackend>::ImportCallContext<'_>, i32, i32, i32, i32, i32, i32, i32) -> i32 + Send + Sync + 'static,
impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32), i32, WithEnv> for Fwhere
WB: WasmBackend,
F: Fn(<WB as WasmBackend>::ImportCallContext<'_>, i32, i32, i32, i32, i32, i32, i32) -> i32 + Send + Sync + 'static,
fn into_func( self, ctx: &mut impl AsContextMut<WB> ) -> <WB as WasmBackend>::HostFunction
source§impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32, i32), (), WithEnv> for Fwhere
WB: WasmBackend,
F: Fn(<WB as WasmBackend>::ImportCallContext<'_>, i32, i32, i32, i32, i32, i32, i32, i32) + Send + Sync + 'static,
impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32, i32), (), WithEnv> for Fwhere
WB: WasmBackend,
F: Fn(<WB as WasmBackend>::ImportCallContext<'_>, i32, i32, i32, i32, i32, i32, i32, i32) + Send + Sync + 'static,
fn into_func( self, ctx: &mut impl AsContextMut<WB> ) -> <WB as WasmBackend>::HostFunction
source§impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32, i32), i32, WithEnv> for Fwhere
WB: WasmBackend,
F: Fn(<WB as WasmBackend>::ImportCallContext<'_>, i32, i32, i32, i32, i32, i32, i32, i32) -> i32 + Send + Sync + 'static,
impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32, i32), i32, WithEnv> for Fwhere
WB: WasmBackend,
F: Fn(<WB as WasmBackend>::ImportCallContext<'_>, i32, i32, i32, i32, i32, i32, i32, i32) -> i32 + Send + Sync + 'static,
fn into_func( self, ctx: &mut impl AsContextMut<WB> ) -> <WB as WasmBackend>::HostFunction
source§impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32, i32, i32), (), WithEnv> for Fwhere
WB: WasmBackend,
F: Fn(<WB as WasmBackend>::ImportCallContext<'_>, i32, i32, i32, i32, i32, i32, i32, i32, i32) + Send + Sync + 'static,
impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32, i32, i32), (), WithEnv> for Fwhere
WB: WasmBackend,
F: Fn(<WB as WasmBackend>::ImportCallContext<'_>, i32, i32, i32, i32, i32, i32, i32, i32, i32) + Send + Sync + 'static,
fn into_func( self, ctx: &mut impl AsContextMut<WB> ) -> <WB as WasmBackend>::HostFunction
source§impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32, i32, i32), i32, WithEnv> for F
impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32, i32, i32), i32, WithEnv> for F
fn into_func( self, ctx: &mut impl AsContextMut<WB> ) -> <WB as WasmBackend>::HostFunction
source§impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32, i32, i32, i32), (), WithEnv> for F
impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32, i32, i32, i32), (), WithEnv> for F
fn into_func( self, ctx: &mut impl AsContextMut<WB> ) -> <WB as WasmBackend>::HostFunction
source§impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32, i32, i32, i32), i32, WithEnv> for F
impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32, i32, i32, i32), i32, WithEnv> for F
fn into_func( self, ctx: &mut impl AsContextMut<WB> ) -> <WB as WasmBackend>::HostFunction
source§impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32), (), WithEnv> for F
impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32), (), WithEnv> for F
fn into_func( self, ctx: &mut impl AsContextMut<WB> ) -> <WB as WasmBackend>::HostFunction
source§impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32), i32, WithEnv> for F
impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32), i32, WithEnv> for F
fn into_func( self, ctx: &mut impl AsContextMut<WB> ) -> <WB as WasmBackend>::HostFunction
source§impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32), (), WithEnv> for F
impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32), (), WithEnv> for F
fn into_func( self, ctx: &mut impl AsContextMut<WB> ) -> <WB as WasmBackend>::HostFunction
source§impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32), i32, WithEnv> for F
impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32), i32, WithEnv> for F
fn into_func( self, ctx: &mut impl AsContextMut<WB> ) -> <WB as WasmBackend>::HostFunction
source§impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32), (), WithEnv> for F
impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32), (), WithEnv> for F
fn into_func( self, ctx: &mut impl AsContextMut<WB> ) -> <WB as WasmBackend>::HostFunction
source§impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32), i32, WithEnv> for F
impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32), i32, WithEnv> for F
fn into_func( self, ctx: &mut impl AsContextMut<WB> ) -> <WB as WasmBackend>::HostFunction
source§impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32), (), WithEnv> for F
impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32), (), WithEnv> for F
fn into_func( self, ctx: &mut impl AsContextMut<WB> ) -> <WB as WasmBackend>::HostFunction
source§impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32), i32, WithEnv> for F
impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32), i32, WithEnv> for F
fn into_func( self, ctx: &mut impl AsContextMut<WB> ) -> <WB as WasmBackend>::HostFunction
source§impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32), (), WithEnv> for F
impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32), (), WithEnv> for F
fn into_func( self, ctx: &mut impl AsContextMut<WB> ) -> <WB as WasmBackend>::HostFunction
source§impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32), i32, WithEnv> for F
impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32), i32, WithEnv> for F
fn into_func( self, ctx: &mut impl AsContextMut<WB> ) -> <WB as WasmBackend>::HostFunction
source§impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32), (), WithEnv> for F
impl<WB, F> IntoFunc<WB, (i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32), (), WithEnv> for F
fn into_func( self, ctx: &mut impl AsContextMut<WB> ) -> <WB as WasmBackend>::HostFunction
Auto Trait Implementations§
impl RefUnwindSafe for WithEnv
impl Send for WithEnv
impl Sync for WithEnv
impl Unpin for WithEnv
impl UnwindSafe for WithEnv
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